SA-MP Forums Archive
[Solved]I'm getting errors please help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Solved]I'm getting errors please help (/showthread.php?tid=126089)



[Solved]I'm getting errors please help - killdahobo99 - 07.02.2010

I'm not sure whats wrong, the errors are

Код:
 error 029: invalid expression, assumed zero
(5522) : error 029: invalid expression, assumed zero

Heres the code:

Код:
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
	if (gCheckpoint[0] == checkpointid)
	{
		SendClientMessage(playerid,0x00C7FFAA,"You've left the City Hall");
	}
	else if (gCheckpoint[1] == checkpointid) && robbinghall[playerid] >=1 {

 	robbinghall[playerid] =0;
  SendClientMessage(playerid,COLOR_ERROR,"LV City Hall robbery failed, you left the checkpoint");
	}
	return 1;
}
5522 is
Код:
else if (gCheckpoint[1] == checkpointid) && robbinghall[playerid] >=1 {
from the code given


Thanks guys.



Re: I'm getting errors please help - BlackFoX - 07.02.2010

Код:
else if (gCheckpoint[1] == checkpointid && robbinghall[playerid] >=1) {



Re: I'm getting errors please help - mansonh - 07.02.2010

else if (gCheckpoint[1] == checkpointid) && robbinghall[playerid] >=1) {


Re: I'm getting errors please help - killdahobo99 - 07.02.2010

Thanks for the quick responses. !!


Re: [Solved]I'm getting errors please help - Diegobatman - 07.02.2010

Nice job on solving it xD