20.12.2010, 21:51
Hi all,i make this code:
For show the !admins online.
Variable: if(PlayerInfo[playerid][AdminLevel] > 1)
I've this errors:
What's wrong?
pawn Код:
IRCCMD:admins(botid, channel[], user[], host[])
{
new str[100],name[24];
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && if(PlayerInfo[i][AdminLevel] > 1)
{
GetPlayerName(i,name,sizeof name);
format(str,sizeof str,"0,3Admin %s (ID:%d) (Level %d)",name,i,AdminLevel[i]);
IRC_GroupSay(gGroupID, channel,str);
}
}
return 1;
}
Variable: if(PlayerInfo[playerid][AdminLevel] > 1)
I've this errors:
Код:
C:\Documents and Settings\l\Desktop\SFWAR.pwn(2994) : error 029: invalid expression, assumed zero C:\Documents and Settings\l\Desktop\SFWAR.pwn(2994) : error 017: undefined symbol "playerid" C:\Documents and Settings\l\Desktop\SFWAR.pwn(2994 -- 2996) : error 001: expected token: "}", but found ";" C:\Documents and Settings\l\Desktop\SFWAR.pwn(2994 -- 2996) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.