error 029: invalid expression, assumed zero
#1

Lines:
Код:
CMD:fly(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 2) {
        new Float:x, Float:y, Float:z;
		if((flying[playerid] = !flying[playerid]))
		{
		    GetPlayerPos(playerid, x, y, z);
		    SetPlayerPos(playerid, x, y, z+5);
      		SetPlayerArmour(playerid, 1000000000.0);
		    SetPlayerHealth(playerid, 1000000000.0);
		    SetTimerEx("AdminFly", 100, 0, "d", playerid);
		}
Error Line:
Код:
if((flying[playerid] = !flying[playerid]))
That all in same line
Код:
error 029: invalid expression, assumed zero
 error 029: invalid expression, assumed zero
 error 029: invalid expression, assumed zero
 fatal error 107: too many error messages on one line
Fix it someone please.. Rep+ for helping
Reply
#2

Im not sure what you're trying to achieve.
pawn Код:
if(flying[playerid] == 0);
You can do this to check if the variable is set to 0.
Reply
#3

PHP код:
if((flying[playerid] != flying[playerid])) 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)