31.07.2016, 07:12
Код:
CMD:factions(playerid,params[]) return mysql_tquery(mysql, "SELECT `Name` FROM `Factions'", "LoadFactionsIG", "i",playerid); forward LoadFactionsIG(playerid); public LoadFactionsIG(playerid) { if(playerid == INVALID_PLAYER_ID) return 1; new rows,fields,str[160]; cache_get_data(rows,fields,mysql); if(!rows) return 1; new fracName[32]; for (new i; i < rows; i++) { cache_get_field_content(i, "Name",fracName,mysql); format(str, sizeof(str), "%s%s \n",str,fracName); } ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Factions", str, "OK",""); return 1; }