Warum stehe ich doppelt und dreifach in der Liste?
Code
ocmd:admins(playerid, params[])
{
new d_info[512];
for(new i;i<MAX_PLAYERS; i++)
{
for(new a;a<sI[i][pAdmin] >= 1; a++)
{
if(sI[i][pAdminDuty] == true)
{
format(d_info, sizeof(d_info), "%s"HTML_ROT"%s ( %s ) \n",d_info, sI[i][pName], GetAdminRangName(sI[i][pAdmin]));
}
else if(sI[i][pAdminDuty] == false)
{
format(d_info, sizeof(d_info), "%s"HTML_WEIS"%s ( %s ) \n",d_info, sI[i][pName], GetAdminRangName(sI[i][pAdmin]));
}
}
ShowPlayerDialog(playerid, D_USER_ADMINLIST, DIALOG_STYLE_MSGBOX, ""SERVER_HTML""SERVER_TAG""HTML_WEIS": Adminliste", d_info, "Schliesen", "");
}
return 1;
}
Alles anzeigen