24.03.2018, 14:25
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;
}