Dialog and mysql
#1

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"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)