Question

Ошибки:

 

Спойлер

C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8751) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8753) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8755) : error 001: expected token: ";", but found "-identifier-"
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8756) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8758) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8759) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8760) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8762) : error 001: expected token: ";", but found "-identifier-"
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8763) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8765) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8766) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8769) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8770) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8771) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8773) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8775) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8777) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8779) : error 001: expected token: ";", but found "-identifier-"
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8780) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8782) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8783) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8784) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8785) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8786) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8787) : error 010: invalid function or declaration
C:\Users\lalka\OneDrive\Рабочий стол\Colorado Role Play\gamemodes\limonchyk.pwn(8788) : error 010: invalid function or declaration

Compilation aborted.

Pawn compiler 3.10.6              Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

 

Сам код:

 

Спойлер

 case 8004:
   {
    if(response)
    {
      new vehicleid1 = GetPlayerVehicleID (playerid);
      switch(listitem)
      {
      case 0: ShowPlayerDialog(playerid, 80112"?????""Shadow\nMega\nWires\nClassic\nRimshine\nCutter\nTwist\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic""OK""?????");
      case 1: AddVehicleComponent(vehicleid1,1087), PlayerPlaySound(playerid,1133,0.0,0.0,0.0), ShowPlayerDialog(playerid, 80042"?????? ????""?????\n??????????\n???????? ??????\n????\n??????\n????""???????""?????");
      case 2:
      {
       new Car = GetPlayerVehicleID (playerid), Model = GetVehicleModel(Car);
       switch(Model)
       {
        case 559,560,561,562,565,558: ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""???????""?????");
        default: SendClientMessage(playerid,COLOR_WHITE, "?? ?????? ???? ?: Elegy, Stratum, Flash, Sultan, Uranus");
       }
      }
      case 3: ShowPlayerDialog(playerid, 80132"????""???????\n???????\n??????\n???????\n?????\n?????????\n??????\n?????""???????""?????");
      case 4: ShowPlayerDialog(playerid, 80142"?????""????? ?1\n????? ?2\n????? ?3""???????""?????");
      case 5: AddVehicleComponent(vehicleid1,1010), PlayerPlaySound(playerid,1133,0.0,0.0,0.0), ShowPlayerDialog(playerid, 80042"?????? ????""?????\n??????????\n???????? ??????\n????\n??????\n????""???????""?????");
     }
    return 1 ;
}
   case 8011:
   {
     if(response)
        {
     new vehicleid2 = GetPlayerVehicleID(playerid);
     switch(listitem)
     {
      case 0: AddVehicleComponent(vehicleid2, 1073);
      case 1: AddVehicleComponent(vehicleid2, 1074);
      case 2: AddVehicleComponent(vehicleid2, 1076);
      case 3: AddVehicleComponent(vehicleid2,1077);
      case 4: AddVehicleComponent(vehicleid2,1075);
      case 5: AddVehicleComponent(vehicleid2,1079);
      case 6: AddVehicleComponent(vehicleid2,1078);
      case 7: AddVehicleComponent(vehicleid2,1080);
      case 8: AddVehicleComponent(vehicleid2,1081);
      case 9: AddVehicleComponent(vehicleid2,1082);
      case 10: AddVehicleComponent(vehicleid2,1083);
      case 11: AddVehicleComponent(vehicleid2,1084);
      case 12: AddVehicleComponent(vehicleid2,1085);
     }
     PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
     ShowPlayerDialog(playerid, 80112"?????? ??????""Shadow\nMega\nWires\nClassic\nRimshine\nCutter\nTwist\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic""OK""?????");
    }
    else ShowPlayerDialog(playerid, 80042"?????? ????""????? \n?????????? \n???????? ?????? \n???? \n?????? \n?????? ?????""???????""?????");
   }
   case 8013:
   {
    if(response)
    {
     new vehicleid3 = GetPlayerVehicleID(playerid);
     switch(listitem)
     {
      case 0: ChangeVehicleColor(vehicleid3, 33);
      case 1: ChangeVehicleColor(vehicleid3, 7979);
      case 2: ChangeVehicleColor(vehicleid3, 6565);
      case 3: ChangeVehicleColor(vehicleid3, 8686);
      case 4: ChangeVehicleColor(vehicleid3, 99);
      case 5: ChangeVehicleColor(vehicleid3, 66);
      case 6: ChangeVehicleColor(vehicleid3, 00);
      case 7: ChangeVehicleColor(vehicleid3, 11);
     }
     PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
     ShowPlayerDialog(playerid, 80132"????? ?????""??????? \n??????? \n?????? \n??????? \n????? \n????????? \n?????? \n?????""??????""?????");
    }
    else ShowPlayerDialog(playerid, 80042"?????? ????""????? \n?????????? \n???????? ?????? \n???? \n?????? \n?????? ?????""???????""?????");
   }
   case 8014:
   {
    if(response)
    {
     new vehicleid4 = GetPlayerVehicleID(playerid);
     ChangeVehiclePaintjob(vehicleid4,listitem+1);
     PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
     ShowPlayerDialog(playerid, 80142"????? ??????""????? ?1 \n????? ?2 \n????? ?3 ""??????""?????");
    }
    else ShowPlayerDialog(playerid, 80042"?????? ????""????? \n?????????? \n???????? ?????? \n???? \n?????? \n?????? ?????""???????""?????");
   }
   case 8012:
   {
    if(response)
    {
     new vehicleid5 = GetPlayerVehicleID(playerid);
     new cartype = GetVehicleModel(vehicleid5);
     switch(listitem)
     {
      case 0:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1172);
        case 560: AddVehicleComponent(vehicleid5,1170);
        case 565: AddVehicleComponent(vehicleid5,1152);
        case 559: AddVehicleComponent(vehicleid5,1173);
        case 561: AddVehicleComponent(vehicleid5,1157);
        case 558: AddVehicleComponent(vehicleid5,1165);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 1:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1171);
        case 560: AddVehicleComponent(vehicleid5,1169);
        case 565: AddVehicleComponent(vehicleid5,1153);
        case 559: AddVehicleComponent(vehicleid5,1160);
        case 561: AddVehicleComponent(vehicleid5,1155);
        case 558: AddVehicleComponent(vehicleid5,1166);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 2:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1148);
        case 560: AddVehicleComponent(vehicleid5,1140);
        case 565: AddVehicleComponent(vehicleid5,1151);
        case 559: AddVehicleComponent(vehicleid5,1161);
        case 561: AddVehicleComponent(vehicleid5,1156);
        case 558: AddVehicleComponent(vehicleid5,1167);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 3:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1149);
        case 560: AddVehicleComponent(vehicleid5,1141);
        case 565: AddVehicleComponent(vehicleid5,1150);
        case 559: AddVehicleComponent(vehicleid5,1159);
        case 561: AddVehicleComponent(vehicleid5,1154);
        case 558: AddVehicleComponent(vehicleid5,1168);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 4:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1146);
        case 560: AddVehicleComponent(vehicleid5,1139);
        case 565: AddVehicleComponent(vehicleid5,1050);
        case 559: AddVehicleComponent(vehicleid5,1158);
        case 561: AddVehicleComponent(vehicleid5,1160);
        case 558: AddVehicleComponent(vehicleid5,1163);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 5:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1147);
        case 560: AddVehicleComponent(vehicleid5,1138);
        case 565: AddVehicleComponent(vehicleid5,1049);
        case 559: AddVehicleComponent(vehicleid5,1162);
        case 561: AddVehicleComponent(vehicleid5,1058);
        case 558: AddVehicleComponent(vehicleid5,1164);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 6:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1041), AddVehicleComponent(vehicleid5,1039);
        case 560: AddVehicleComponent(vehicleid5,1031), AddVehicleComponent(vehicleid5,1030);
        case 565: AddVehicleComponent(vehicleid5,1052), AddVehicleComponent(vehicleid5,1048);
        case 559: AddVehicleComponent(vehicleid5,1070), AddVehicleComponent(vehicleid5,1072);
        case 561: AddVehicleComponent(vehicleid5,1057), AddVehicleComponent(vehicleid5,1063);
        case 558: AddVehicleComponent(vehicleid5,1093), AddVehicleComponent(vehicleid5,1095);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 7:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1036), AddVehicleComponent(vehicleid5,1040);
        case 560: AddVehicleComponent(vehicleid5,1026), AddVehicleComponent(vehicleid5,1027);
        case 565: AddVehicleComponent(vehicleid5,1051), AddVehicleComponent(vehicleid5,1047);
        case 559: AddVehicleComponent(vehicleid5,1069), AddVehicleComponent(vehicleid5,1071);
        case 561: AddVehicleComponent(vehicleid5,1056), AddVehicleComponent(vehicleid5,1062);
        case 558: AddVehicleComponent(vehicleid5,1090), AddVehicleComponent(vehicleid5,1094);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 8:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1035);
        case 560: AddVehicleComponent(vehicleid5,1033);
        case 565: AddVehicleComponent(vehicleid5,1052);
        case 559: AddVehicleComponent(vehicleid5,1068);
        case 561: AddVehicleComponent(vehicleid5,1061);
        case 558: AddVehicleComponent(vehicleid5,1091);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 9:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1038);
        case 560: AddVehicleComponent(vehicleid5,1032);
        case 565: AddVehicleComponent(vehicleid5,1054);
        case 559: AddVehicleComponent(vehicleid5,1067);
        case 561: AddVehicleComponent(vehicleid5,1055);
        case 558: AddVehicleComponent(vehicleid5,1088);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 10:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1037);
        case 560: AddVehicleComponent(vehicleid5,1029);
        case 565: AddVehicleComponent(vehicleid5,1045);
        case 559: AddVehicleComponent(vehicleid5,1066);
        case 561: AddVehicleComponent(vehicleid5,1059);
        case 558: AddVehicleComponent(vehicleid5,1089);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
      case 11:
      {
       switch(cartype)
       {
        case 562: AddVehicleComponent(vehicleid5,1034);
        case 560: AddVehicleComponent(vehicleid5,1028);
        case 565: AddVehicleComponent(vehicleid5,1046);
        case 559: AddVehicleComponent(vehicleid5,1065);
        case 561: AddVehicleComponent(vehicleid5,1064);
        case 558: AddVehicleComponent(vehicleid5,1092);
       }
       PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
       ShowPlayerDialog(playerid, 80122"?????? Wheel Arch Angels""???????? ?????? X-flow\n???????? ?????? Alien\n?????? ?????? X-Flow\n?????? ?????? Alien\n??????? X-Flow \n??????? Alien \n??????? ???? X-Flow \n??????? ???? Alien\n??????????????? X-Flow\n??????????????? Alien\n?????? X-flow\n?????? Alien""OK""?????");
      }
     }
    }
    else ShowPlayerDialog(playerid, 80042"?????? ????""?????\n??????????\n???????? ??????\n????\n??????\n?????? ?????""???????""?????");
    return 1;
}

  

Подскажите пожалуйста в чем собственно здесь косяк, я новичок, так что плохо шарю.

Share this post


Link to post

2 answers to this question

  • 0

@STIMEX, так а куда вы этот код вставили? Вероятно, он должен быть в OnDialogResponse внутри блока switch

Share this post


Link to post
  • 0

судя по limonchyk.pwn, у вас навык программирования  равен нулю, но всем пофиг, я сам через это проходил. Можете скинуть номер хотя бы одной строчки, я обычно на них ориентируюсь 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0