Command help ZCMD..
#1

Here is Code..

Код:
CMD:afklist(playerid, params[])
{
	new string[128], count, pName[24];
    SendClientMessage(playerid,0xFFFF00AA, "**-:Online Admins:-**");
    for(new i ; i < MAX_PLAYERS; i++)
    {
        if(Info[i][Level])
            GetPlayerName(i,pName,24);
        else
            continue;
        count++;
        switch(Info[i][Level])
        {
            case 1:format(string, 60, "Name: %s | Level: 1 [Trainee Moderator]",pName);
            case 2:format(string, 60, "Name: %s | Level: 2 [Moderator]",pName);
            case 3:format(string, 60, "Name: %s | Level: 3 [Admin]",pName);
            case 4:format(string, 60, "Name: %s | Level: 4 [Full Admin]",pName);
            case 5:format(string, 60, "Name: %s | Level: 5 [Lead Admin]",pName);
        }
        if(IsPlayerAdmin(i))
            format(string, 60, "Name: %s | Level: %d [MAIN SERVER ADMIN/OWNER]",pName,Info[playerid][Level]);
        SendClientMessage(playerid,white,string);
    }
    SendClientMessage(playerid,lightblue,"------------------------");
    if(count)
        format(string, 128,"Total Online: %d",count);
    else
        return SendClientMessage(playerid,red,"There are currently no admins online."),1;
    SendClientMessage(playerid,lightblue,string);
	return 1;
}
And Here Are Errors..
Код:
D:\SAATD\gamemodes\mata2.pwn(10844) : error 017: undefined symbol "Info"
D:\SAATD\gamemodes\mata2.pwn(10844) : warning 215: expression has no effect
D:\SAATD\gamemodes\mata2.pwn(10844) : error 001: expected token: ";", but found "]"
D:\SAATD\gamemodes\mata2.pwn(10844) : error 029: invalid expression, assumed zero
D:\SAATD\gamemodes\mata2.pwn(10844) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Please help, i am using zcmd.

Thanks
Reply
#2

Maybe Info is PlayerInfo?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)