Guten abend liebe user ich habe echt kein plan warum der immer nur 2 user oder auch nur ein user in der box anzeigt obwohl 4
admins online dind könnt ihr mir helfen weil jetzt geht garnix mehr
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new adminbox[500];
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] == 1338)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"{0532FA}Co Owner: %s\n",sendername);
}
if(PlayerInfo[i][pAdmin] == 1337)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s{9005FA}Administrator: %s\n",string, sendername);
}
if(PlayerInfo[i][pAdmin] == 4)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s{2EFA05}Supporter: %s\n" ,string, sendername);
}
if(PlayerInfo[i][pAdmin] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s{2EFA05}Supporter auf Probe: %s\n",string, sendername);
}
if(PlayerInfo[i][pAdmin] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s{FA7F05}Moderator: %s\n",string, sendername);
}
if(PlayerInfo[i][pAdmin] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s{FA7F05}Moderator auf Probe: %s\n",string, sendername);
}
if(PlayerInfo[i][pAdmin] == 1339)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s{FA0542}Serverleitung: %s\n",string, sendername);
}
ShowPlayerDialog(playerid,DIALOG_ADMINS,DIALOG_STYLE_MSGBOX,"{FCFCFC}Admins die online sind:",adminbox,"Fertig","");
}
}
}
return 1;
}