Loop on dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Loop on dialog (
/showthread.php?tid=442190)
Loop on dialog -
falcko - 06.06.2013
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.