SA-MP Forums Archive
error 001: expected token: ")", but found ":" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 001: expected token: ")", but found ":" (/showthread.php?tid=586298)



error 001: expected token: ")", but found ":" - NickMirra - 21.08.2015

removed - was hacked.


Re: error 001: expected token: ")", but found ":" - X337 - 21.08.2015

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
	{
 		case 126:
                {
                       if(response)
                       {
				new string[128];
				format(string, sizeof(string),"%s radio unit selected.",UnitNames[listitem][0]);
				SendClientMessage(playerid, COLOR_WHITE, string);
                                SetPVarInt(playerid, "PDUNIT", listitem+1);
                       }
                }
	}
    return 1;
}