Loop on dialog
#1

Hi,
I have make a dynamic dialog with a loop but it not works.

I have check with printf and sendclientmessage, it work but the dialog won't show.
Код:
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
[13:45:55] 0
My loop :
Код:
for(new d; d<=MAX_DUELS; d++)
				{
					printf("%d",DuelInfo[d][Started]);
					if(DuelInfo[d][Started] == 0)
					{
                                            SendClientMessage(playerid, COLOR_GREEN, "ok");
					    format(string, sizeof(string), "Duel #%d inutilisй.\n", d);
					    strcat(string, table);
					}
				}
				//format(string, sizeof(string), "Rejoindre un duel (%d disponibles)", nbduel);
				ShowPlayerDialog(playerid, DIALOG_DUEL_JOIN, DIALOG_STYLE_LIST, "test", table, "Rejoindre", "Quitter");
I haven't found a solution, please help me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)