Small dialog problem
#1

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

PHP код:
for(new i=0rowsi++) {
        
cache_get_field_content(i"Reason"string);
        
format(reasonsizeof(string), string);
        
        
cache_get_field_content(i"Date"dateString);
        
format(dateNowsizeof(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"); 
Reply


Messages In This Thread
Small dialog problem - by Squirrel - 11.01.2016, 01:33
Re: Small dialog problem - by itsCody - 11.01.2016, 01:57
Re: Small dialog problem - by Jefff - 11.01.2016, 01:58
Re: Small dialog problem - by Squirrel - 11.01.2016, 01:58
Re: Small dialog problem - by itsCody - 11.01.2016, 02:04
Re: Small dialog problem - by Squirrel - 11.01.2016, 02:06

Forum Jump:


Users browsing this thread: 7 Guest(s)