26.08.2014, 05:06
C:\Users\PhantoM21\Desktop\Test.pwn(54) : warning 217: loose indentation
C:\Users\PhantoM21\Desktop\Test.pwn(56) : error 030: compound statement not closed at the end of file (started at line 33)
if(dialogid == 1) Is line 33.
Return 0; Is line 54.
and the last } is line 56.
C:\Users\PhantoM21\Desktop\Test.pwn(56) : error 030: compound statement not closed at the end of file (started at line 33)
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(response) { //SendClientMessage(playerid,0x008000FF, "Enjoy your stay!"); } else { //SendClientMessage(playerid, 0xFF0000FF, "You selected 'Quit', therefore you got kicked. Goodbye!"); //Kick(playerid); } if(dialogid == 2) { if(response) { if(listitem == 0) { SendClientMessage(playerid,0xFF0000FF,"Test"); } } } return 0; }
Return 0; Is line 54.
and the last } is line 56.