Heii Leute,
nun der nächste Bug.
Beim Command /admins wo alle Admins angezeigt werden, werden nur die ersten 4 Admins angezeigt:
Also Supporter:Denninho
IngameModerator: Denninho usw.
ab Rang 5 steht da nur noch Denninho.
dcmd_admins(playerid,params[])
{
#pragma unused params
SendClientMessage(playerid, COLOR_PURPLE, "Admins Online:");
new i = 0, aname[256], string[256];
for(; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spieler[i][admin] == 1)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " Supporter: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else if(Spieler[i][admin] == 2)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " IngameModerator: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
else if(Spieler[i][admin] == 3)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " SupportAdmin 1: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else if(Spieler[i][admin] == 4)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " SupportAdmin 2: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else if(Spieler[i][admin] == 5)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " SupportAdmin 3: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
else if(Spieler[i][admin] == 1337)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " 1337 Admin: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
else if(Spieler[i][admin] == 1338)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " 1338 Admin: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
else if(Spieler[i][admin] == 1339)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " 1339 Admin: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
}
}
return 1;
}
Wo liegt da der Fehler