OnPlayerEnterCheckpoint
#1

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];
Reply
#2

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?
Reply
#3

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
Reply
#4

mm, can i have a little more code?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)