06.06.2013, 11:46
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.
My loop :
I haven't found a solution, please help me.
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
Код:
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");

