27.08.2010, 14:04
YO the compiler giving me this error:
creating a dialog menu, but when i add another cases etc, giveme this:
C:\Users\Antonio Carlos\Desktop\Nuno\gta sa\gamemodes\stuntserver.pwn(701) : error 030: compound statement not closed at the end of file (started at line 656)
HELPME!!!!
creating a dialog menu, but when i add another cases etc, giveme this:
C:\Users\Antonio Carlos\Desktop\Nuno\gta sa\gamemodes\stuntserver.pwn(701) : error 030: compound statement not closed at the end of file (started at line 656)
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == shopmenu) { if(response) { if(listitem == 0) { SendClientMessage(playerid,0xFFFFFFFF, "Test menu 0"); ShowPlayerDialog(playerid, telemenu, DIALOG_STYLE_LIST, "Teleport menu", "Abandoned Airport \nBeatch stunt \nTEST \nAnother Weapons \n1 \n2 \n3 \n4 \n5 \n6 \n7 \n8 \n9 \n10 \n11 \n12 ", "Spawn", "Cancel"); } if(listitem == 1) { SendClientMessage(playerid,0xFFFFFFFF, "Test menu 1"); } if(listitem == 2) { SendClientMessage(playerid,0xFFFFFFFF, "Test menu 2"); } if(listitem == 3) { SendClientMessage(playerid,0xFFFFFFFF, "Test menu 3"); } } return 1; } if(dialogid == telemenu) { if(response) { if(listitem == 0) //Abandoned Airport { SetPlayerPos(playerid,850.1561,-2058.8074,12.8672); } if(listitem == 1) //Beatch Stunt { SetPlayerPos(playerid,850.1561,-2058.8074,12.8672); } if(listitem == 2) // Sultan { SetPlayerPos(playerid,850.1561,-2058.8074,12.8672); } } return 1; }
HELPME!!!!