PHP код:
ShowPlayerDialog(playerid, d_offline, DIALOG_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,
string, true, "OFFmembers", "d",playerid);
}
forward OFFmembers(playerid);
public OFFmembers(playerid)
{
new rows, fields,i,string2[64],string[1256],name[MAX_PLAYER_NAME];
cache_get_data(rows, fields);
for(i = 0; i < rows; i++)
{
cache_get_field_content(i, "Name", string2),strmid(name, string2, 0, strlen(string2), MAX_PLAYER_NAME);
format(string,sizeof(string),"%s\n%s",name,string);
ShowPlayerDialog(playerid, 0, DIALOG_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?
Please collaborate more. You are providing us with very little information.
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.