#1

Код:
C:\Users\pawno\include\PPC_PlayerCommands.inc(2529) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\\pawno\include\PPC_PlayerCommands.inc(2533) : error 017: undefined symbol "IsOnAdminDuty"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
COMMAND:admins(playerid, params[])
{
    // Send the command to all admins so they can see it
	SendAdminText(playerid, "/admins", params);
    new str[128],name[MAX_PLAYER_NAME];
    SendClientMessage(playerid, 0xFFFFFFAA, "Admins Online:");
    for(new i; i<=MAX_PLAYERS; i++)
    for(new i = 0; i <MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsOnAdminDuty[i] == true)
            {
            new aname[24],astring[124];
            GetPlayerName(playerid,aname,sizeof(aname));
            format(astring,sizeof(astring),"%s (On duty)",aname);
            SendClientMessage(playerid,-1,astring);
            }
            if (APlayerData[i][PlayerLevel] >= 1)
            {
                 GetPlayerName(i,name,sizeof(name));
                 format(str, sizeof(str), "%s[%d] Level:%d",name, i,APlayerData[i][PlayerLevel]);
                 format(str, sizeof(str), "%s: %s%s %s  %i\n", name, AdminLevelName[APlayerData[i][PlayerLevel]], i,      APlayerData[i][PlayerLevel]); // Add the name of the admin-player to the list
                 SendClientMessage(playerid, 0xFFFFFFAA, str);
            }
            else return SendClientMessage(playerid,0xFF0000FF,"No Admin Online");
        }
    }
    return 1;
}
Reply
#2

Код:
for(new i; i<=MAX_PLAYERS; i++) //<--- just remove.
for(new i = 0; i <MAX_PLAYERS; i++)
Reply
#3

Код:
C:\Users\pawno\include\PPC_PlayerCommands.inc(2532) : error 017: undefined symbol "IsOnAdminDuty"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

Код:
new IsOnAdminDuty[MAX_PLAYERS];
Reply
#5

Код:
C:\Users\pawno\include\PPC_PlayerCommands.inc(2532) : warning 213: tag mismatch
C:\Users\pawno\include\PPC_PlayerCommands.inc(5046) : error 021: symbol already defined: "IsOnAdminDuty"
C:\Users\pawno\include\PPC_PlayerCommands.inc(5050) : warning 213: tag mismatch
C:\Users\\pawno\include\PPC_PlayerCommands.inc(5064) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

Код:
new bool:IsOnAdminDuty[MAX_PLAYERS];
Reply
#7

i got it to work but it don't show (On duty)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)