C:\Users\Jerome\Desktop\gamemode\Rl.pwn(23124) : warning 219: local variable "i" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
die zeile
if (strcmp(cmd, "/admins", true) ==0 )
{
new count = 0;
SendClientMessage(playerid, COLOR_BLUE, "----------[Online Staff Team]-----------");
for(new i = 0; i < MAX_PLAYERS; i++) <--------Die Zeile
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && AdminDuty[i] == 0)
{
format(string, 256, "Admin %s (id: %d) - Off duty.", GetPlayerNameEx(i), i, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
if(PlayerInfo[i][pAdmin] >= 1 && AdminDuty[i] == 1)
{
format(string, 256, "Admin %s (id: %d) - On duty.", GetPlayerNameEx(i), i, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid,COLOR_WHITE,"Keine admins Online!.");
}
SendClientMessage(playerid, COLOR_BLUE, "----------------------------------------");
return 1;
}
Hoffe jemand hat die Lösung