IRCCMD:admins problem
#1

Hi all,i make this code:

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;
}
For show the !admins online.

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.
What's wrong?
Reply


Messages In This Thread
IRCCMD:admins problem - by Face9000 - 20.12.2010, 21:51
Re: IRCCMD:admins problem - by Mean - 20.12.2010, 22:27
Re: IRCCMD:admins problem - by Face9000 - 21.12.2010, 09:58
Re: IRCCMD:admins problem - by Rachael - 21.12.2010, 10:09
Re: IRCCMD:admins problem - by Face9000 - 21.12.2010, 10:17

Forum Jump:


Users browsing this thread: 1 Guest(s)