27.01.2017, 08:34
Hello guys i have a command to check admin levels
And its R5 i want to convert to R41-2
And its R5 i want to convert to R41-2
PHP код:
CMD:admlevel10(playerid, params[])
{
mysql_query("SELECT user FROM playerdata WHERE level = 10");
mysql_store_result();
if(mysql_num_rows()) {
new
ID,
output[800];
while(mysql_retrieve_row())
{
ID ++;
new
username[24];
mysql_fetch_field_row(username, "user");
format(output, sizeof(output), "%s"ccwhite"%d. %s\n", output, ID, username);
}
mysql_free_result();
ShowPlayerDialog(playerid, 1101, DIALOG_STYLE_MSGBOX, "Level 10 Admins", output, "OK", "Cancel");}
else {
ShowPlayerDialog(playerid, 1101, DIALOG_STYLE_MSGBOX, "Level 10 Admins", "No Admins of this level.", "OK", "Cancel");}
return 1;
}