SA-MP Forums Archive
Dialog and mysql - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog and mysql (/showthread.php?tid=662281)



Dialog and mysql - Oficer - 28.12.2018

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 
icache_num_rows(); ji++)
        {
            
cache_get_value(i"Name"name15);
            
cache_get_value_int(i"uid"Player[uid]);
            
            
format(stringsizeof(string), "%s\t%d\n"namePlayer[uid]);
            
strcat(lstringstring);
        }
        
ShowPlayerDialog(playeridDIALOG_FACTION_FBIDIALOG_STYLE_TABLIST_HEADERS"Federal Bureau of Investigation"lstring"Ok");