members offline
#1

PHP код:
ShowPlayerDialog(playeridd_offlineDIALOG_STYLE_LIST"Members""members offline""ok""cancel"); 
case 
d_offline
{
        if(!
response) return 1;
        new 
string[64],mysql_format(handle,string,sizeof(string),"SELECT * FROM `accounts` WHERE `Member` = '%d'",pl[playerid][pMember]),mysql_function_query(handle,
 
stringtrue"OFFmembers""d",playerid);     
}
forward OFFmembers(playerid);
public 
OFFmembers(playerid)
{
        new 
rowsfields,i,string2[64],string[1256],name[MAX_PLAYER_NAME];
        
cache_get_data(rowsfields);
        for(
0rowsi++)
        {
                
cache_get_field_content(i"Name"string2),strmid(namestring20strlen(string2), MAX_PLAYER_NAME); 
                
format(string,sizeof(string),"%s\n%s",name,string); 
                
ShowPlayerDialog(playerid0DIALOG_STYLE_LIST"Меню лидера: Сотрудники",string"ok""cancel"); 
        }
        return 
true;

How to make it so that when you click on the player (from the list of offline subordinate organizations) you could dismiss or another action to commit?
Reply
#2

Please collaborate more. You are providing us with very little information.
If i understood you correctly:
Does your table has an ID field?
You can use ondialogresponse. print the id of the user in the dialog and use inputtext ondialogresponse to get the id. This would work only when using tablist_headers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)