SA-MP Forums Archive
flymode - 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)
+--- Thread: flymode (/showthread.php?tid=652438)



flymode - enzulikeS - 11.04.2018

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;
}



Re: flymode - Nyzenic - 11.04.2018

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