SA-MP Forums Archive
[Help]1 stupid error - 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: [Help]1 stupid error (/showthread.php?tid=306995)



[Help]1 stupid error - Tautwis - 28.12.2011

Hello. My error is:

error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "if"


Everything is on the same line.

The line:
else if(strcmp(x_nr,"alarm",true) == 0)

after this goes:
{
if(PlayerInfo[playerid][pPcarkey] == 9999 || PlayerInfo[playerid][pPcarkey2] == 9999)
{
SendClientMessage(playerid, COLOR_GREY," my text here.");
return 1;
}



Thank you for your answers ^^


Re: [Help]1 stupid error - Bogdan1992 - 28.12.2011

Remove else

Код:
if(strcmp(x_nr,"alarm",true) == 0)



Re: [Help]1 stupid error - Tautwis - 28.12.2011

Much thanks for your quick and correct help ^^
You've got +REP from me