flymode
#1

problem:
Код:
D:\server\gamemodes\Untitled2.pwn(41) : error 017: undefined symbol "flymode"
D:\server\gamemodes\Untitled2.pwn(41) : warning 215: expression has no effect
D:\server\gamemodes\Untitled2.pwn(41) : error 001: expected token: ";", but found "]"
D:\server\gamemodes\Untitled2.pwn(41) : error 029: invalid expression, assumed zero
D:\server\gamemodes\Untitled2.pwn(41) : fatal error 107: too many error messages on one line
script


Код:
CMD:flymode(playerid, params[])
{
	if(IsPlayerConnected(playerid))
	{
		    if(flymode[playerid] == 0)
		    {
		        GetPlayerName(playerid, sendername, sizeof(sendername));
	            flymode[playerid] = 1;
				InitFly(playerid);
				StartFly(playerid);
				SetPlayerHealthEx(playerid, 50000);
			}
		}
		else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
	}
	return 1;
}
Reply
#2

Do you have new flymode[MAX_PLAYERS]; on top of your script?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)