07.02.2018, 15:13
i created a function and removed the new; the errors are as follow:
Lines are:
16112: if(GetPVarInt(i, "Cover") == 0) SendAdminMessage(COLOR_WARNING, string,1);
4740: foreach(Player, i) {
The function is:
Код:
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
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; }