11.01.2016, 01:33
Alright so me again lol
the dialog shows only last thing it found, if I do it all with SendClientMessage it works but dialog shows only last found data
the dialog shows only last thing it found, if I do it all with SendClientMessage it works but dialog shows only last found data
PHP код:
for(new i=0; i < rows; i++) {
cache_get_field_content(i, "Reason", string);
format(reason, sizeof(string), string);
cache_get_field_content(i, "Date", dateString);
format(dateNow, sizeof(dateString), dateString);
format(mainstring,sizeof(mainstring),"%s\t%s\n",string,dateString);
crimecount++;
}
if(crimecount == 0) return Msg(playerid,COLOR_RED,"No results found for this person");
else if(crimecount >= 1) return ShowPlayerDialog(playerid,DIALOG_PLAYER_CRIMES,DIALOG_STYLE_TABLIST,"Test",mainstring,"Confirm","Decline");