21.10.2018, 16:48
Header 1= Username
Header 2= Targetname
Header 3= Reason
Header 4= Date
What I want to do:
Every MYSQL info to be set inside the dialog style.
PHP код:
CMD:reports(playerid, params[])
{
if(pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,-1,""COL_RED"Nu detii functia administrativa necesara!");
mysql_tquery(handle, "SELECT * FROM `reportlog`", "ShowReports", "d", playerid);
ShowPlayerDialog(playerid, DIALOG_REPORTS, DIALOG_STYLE_TABLIST_HEADERS, "Caption",
"Header 1\tHeader 2\tHeader 3\tHeader 4\n\
Item 1 Column 1\tItem 1 Column 2\tItem 1 Column 3\tItem 1 Column 4\n\
{FF0000}Item 2 Column 1\t{33AA33}Item 2 Column 2\tItem 2 Column 3\tItem 2 Column 4",
"Button 1", "Button 2");
return 1;
}
Also, I don't know how to set "case" to show the same Option for every report inside the dialog