Line 5 errors
#9

i created a function and removed the new; the errors are as follow:

Код:
D:\server\gamemodes\ExtremeGame.pwn(4740) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level
D:\server\gamemodes\ExtremeGame.pwn(16112) : error 012: invalid function call, not a valid address
D:\server\gamemodes\ExtremeGame.pwn(16112) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(16112) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(16112) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(16112) : error 001: expected token: ";", but found ")"
D:\server\gamemodes\ExtremeGame.pwn(16112) : error 029: invalid expression, assumed zero
D:\server\gamemodes\ExtremeGame.pwn(16112) : fatal error 107: too many error messages on one line
Lines are:
16112: if(GetPVarInt(i, "Cover") == 0) SendAdminMessage(COLOR_WARNING, string,1);
4740: foreach(Player, i) {

The function is:

Код:
function GetAdmins() {
	new x;
	foreach(Player, i) {
		if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] >= 1) x++;
	}
	return x;
}
Reply


Messages In This Thread
Line 5 errors - by enzulikeS - 06.02.2018, 21:43
Re: Line 5 errors - by dani18 - 06.02.2018, 22:01
Re: Line 5 errors - by enzulikeS - 06.02.2018, 22:06
Re: Line 5 errors - by Hypex - 06.02.2018, 22:16
Re: Line 5 errors - by enzulikeS - 07.02.2018, 15:03
Re: Line 5 errors - by solstice_ - 07.02.2018, 15:04
Re: Line 5 errors - by enzulikeS - 07.02.2018, 15:05
Re: Line 5 errors - by solstice_ - 07.02.2018, 15:07
Re: Line 5 errors - by enzulikeS - 07.02.2018, 15:13
Re: Line 5 errors - by solstice_ - 07.02.2018, 15:30

Forum Jump:


Users browsing this thread: 3 Guest(s)