[Solved]I'm getting errors please help
#1

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.
Reply
#2

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

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

Thanks for the quick responses. !!
Reply
#5

Nice job on solving it xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)