09.02.2015, 16:06
Hello all, i wanted to make a function which sends a message to admins aka
PlayerInfo[playerid][pAdmin]>0
but error messages kept appearing.
ERROR MSG:
This is a function, above OnGameModeInIt and under main()
I tried the same thing with changing it from public to stock.
And Thanks.
PlayerInfo[playerid][pAdmin]>0
but error messages kept appearing.
ERROR MSG:
Quote:
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : error 029: invalid expression, assumed zero C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : warning 215: expression has no effect C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : error 001: expected token: ";", but found ")" C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : error 029: invalid expression, assumed zero C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : fatal error 107: too many error messages on one line |
PHP код:
forward SendAdminsMessage(playerid,string);
public SendAdminsMessage(playerid,string)
{
foreach (new i: Player)
{
if(PlayerInfo[i][pAdmin])>0)
SendClientMessage(i,RED,chaine);
}
return 1;
}
And Thanks.