23.08.2011, 19:35
If I am not mistaken, than Hiddos code would always show "No admins online!" and the online admins if there are some
pawn Code:
dcmd_admins(playerid, unused[]) {
#pragma unused unused
new
i = 0,
string[400];
for( ; i != MAX_PLAYERS; ++i) { // foreach ?
if(0 < Variables[i][Level] < 10) {
format(string, sizeof string, "%s{FF0000}ADMINISTRATOR: %s ID[%d]{15D4ED}[Level %d]\n", string, RealName[i], i, Variables[i][Level]);
}
}
if(string[0] == EOS) {
string = "No admins online.";
}
ShowPlayerDialog(playerid, 5591, DIALOG_STYLE_MSGBOX, "{1B1BE0}Online Admins:", string, "Done", "");
return true;
}