28.12.2018, 10:39
I have this in dialog, how I can check, who option/player was chosen? It's possible with mysql?
PHP код:
mysql_query(DB, "SELECT `Name`,`uid` FROM `serv` WHERE FBI = 1");
new name[MAX_PLAYERS], lstring[1250] = "Name\tUID\n", string[128];
for(new i, j = cache_num_rows(); i < j; i++)
{
cache_get_value(i, "Name", name, 15);
cache_get_value_int(i, "uid", Player[uid]);
format(string, sizeof(string), "%s\t%d\n", name, Player[uid]);
strcat(lstring, string);
}
ShowPlayerDialog(playerid, DIALOG_FACTION_FBI, DIALOG_STYLE_TABLIST_HEADERS, "Federal Bureau of Investigation", lstring, "Ok");