09.11.2012, 05:17
i dont know where to put the else!!
please help...
This error
___________
please help...
Код:
if(dialogid == 100) { if(response == 0) return SendClientMessage(playerid, COLOR_GOLD, "Admin Tele Canceled"); switch(listitem) { case 0:{ ShowPlayerDialog(playerid, 101, DIALOG_STYLE_LIST,"Pilot Spawn","Los Santos\nLas Venturas\nSan Fierro", "Enter", "Cancel"); } case 1:{ if(GetPlayerScore(playerid) < 100) { SendClientMessage(playerid, COLOR_RED, "you need 100 score to be military pilot"); ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST,"Class Selection","Pilot\nMilitary Pilot", "Enter", "Quit"); } ShowPlayerDialog(playerid, 102, DIALOG_STYLE_LIST,"Military Pilot Spawn","Are 69", "Enter", "Cancel"); } } else // Pressed ESC or clicked cancel { SendClientMessage(playerid, COLOR_RED, "You have press Quit"); Kick(playerid); } }
___________
Quote:
error 029: invalid expression, assumed zero |