SA-MP Forums Archive
OnPlayerEnterCheckpoint - 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: OnPlayerEnterCheckpoint (/showthread.php?tid=116819)



OnPlayerEnterCheckpoint - Vialpando - 30.12.2009

Hi, i get everytime these errors under onplayerentercheckpoint.

Код:
error 012: invalid function call, not a valid address
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Код:
if(pizzamission(playerid) == 1) //<----Error
	{
	  DisablePlayerCheckpoint(playerid);
	  pizzas[playerid] = 5;
	  Pizzas(playerid);
	return 1;
	}
Tried "if(pizzamission[playerid] == 1)", but also didnt work. My define is also ok = new pizzamission[MAX_PLAYERS];


Re: OnPlayerEnterCheckpoint - Niixie - 30.12.2009

Try moving the brackets down to the Pizzamission text.
and make it

pawn Код:
if(pizzamission[playerid] == 1)
{
   DisablePlayerCheckpoint(playerid);
   pizzas[playerid] = 5;
   Pizzas(playerid);
   return 1;
}
What happends then?


Re: OnPlayerEnterCheckpoint - Vialpando - 30.12.2009

Quote:
Originally Posted by Niixie
Try moving the brackets down to the Pizzamission text.
and make it

pawn Код:
if(pizzamission[playerid] == 1)
{
   DisablePlayerCheckpoint(playerid);
   pizzas[playerid] = 5;
   Pizzas(playerid);
   return 1;
}
What happends then?
same errors


Re: OnPlayerEnterCheckpoint - Niixie - 30.12.2009

mm, can i have a little more code?