...sehr komisch.
Mach mal n Debug:
C
forward AdminList(playerid);
public AdminList(playerid)
{
static const rang_namen[][] = {"Spieler", "Helfer", "Probe Supporter", "Supporter", "Administration", "Developer", "{00a4b3}Managment", "{FF0000}Projektleitung"};
new rows;
cache_get_row_count(rows);
const MAX_ADMINS = 15;
new table[MAX_ADMINS][2], admins[MAX_ADMINS][MAX_PLAYER_NAME];
for(new i; i<rows; i++)
{
cache_get_value_name_int(i, "Admin", table[i][0]);
cache_get_value_name(i, "Name", admins[i]);
table[i][1] = i;
}
//Debug
print("DEBUG: BEFORE");
for(new i; i<rows; i++)
{
printf("%d - %d|%d - %s",i,table[i][0],table[i][1],admins[i]);
}
SortDeepArray(table, 0);
//Debug
print("DEBUG: AFTER");
for(new i; i<rows; i++)
{
printf("%d - %d|%d - %s",i,table[i][0],table[i][1],admins[i]);
}
new string[(MAX_PLAYER_NAME+25)*MAX_ADMINS] = "Rang\tName\tOnlinestatus";
for(new i=rows-1,idx,r,status[32]; i!=-1; i--)
{
r = table[i][0], idx = table[i][1];
GetPlayerStatus(admins[idx], status);
format(string,sizeof(string),"%s\n%s\t%s\t%s",string,rang_namen[r],admins[idx],status);
}
ShowPlayerDialog(playerid, 8, DIALOG_STYLE_TABLIST_HEADERS, "ARP Team",string,"Okay","");
return 1;
}
Alles anzeigen
und dann poste mal, was im Log steht.