mysql?
akkor így:
CMD:adminteam(playerid) {
mysql_function_query(sql, \"SELECT `Name`, `Admin` FROM `accounts` WHERE `Admin` != \'0\' ORDER BY (`Admin`) DESC;\", true, \"THREAD_AdminTeam\", \"i\", playerid);
return 1;
}
forward THREAD_AdminTeam(playerid);
public THREAD_AdminTeam(playerid) {
new rows = cache_num_rows(sql);
if(rows) {
string[0] = EOS;
new adminname[24];
strcat(string, \"(( {33ccff}A Szerver Tulajdonosai {ff0000}Pirossal {33ccff}vannak kiemelve ))\\n\\n\");
for(new x; x < rows; x++) {
cache_get_row(x, 0, adminname, sql, sizeof(adminname));
format(line, sizeof(line), \"(Szint: %i)\", cache_get_row_int(x, 1, sql));
format(query, sizeof(query), \"%s%s {9C9C9C}%s\\n\", (!strcmp(adminname, \"TulajNeve\") || !strcmp(adminname, \"TulajNeve2\")?(\"{ff0000}\"):(\"{DCDCDC}\")), adminname, (!strcmp(adminname, \"TulajNeve\")||!strcmp(adminname, \"TulajNeve2\")?(\"Tulajdonos\"):(line)));
strcat(string, query);
}
ShowPlayerDialog(playerid, DIALOG_ADMINT, DIALOG_STYLE_MSGBOX, \"Adminisztrátorok:\", string, \"Oké\", \"\");
}else ShowPlayerDialog(playerid, DIALOG_ADMINT, DIALOG_STYLE_MSGBOX, \"Adminisztrátorok:\", \"Nincs egyetlen Adminisztrátor sem az adatbázisban.\", \"Oké\", \"\");
return 1;
}
Pedró írta még régebben.