SA-MP Forums Archive
Showing "Updated Dialogs" - 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: Showing "Updated Dialogs" (/showthread.php?tid=454856)



Showing "Updated Dialogs" - arjanforgames - 30.07.2013

How can I show the player a dialog that is updating.
Like the first player typing /world gets:


[DIALOG OUTLINE]
World 1 [0/16]

[0/16] represents the amount of players, (maximum of 16)

So how do I update it so the next player who gets the dialogs shown says:
[DIALOG OUTLINE]
World 1 [1/16]

How can I do this?



Re: Showing "Updated Dialogs" - Jstylezzz - 30.07.2013

You want to show the players online in a world? Is a 'world' a virtualworld?


Re: Showing "Updated Dialogs" - arjanforgames - 30.07.2013

I actually used it as an example. We could just use simple variables like:
new playersWorld_1[MAX_PLAYERS];
new playersWorld_2[MAX_PLAYERS];


Re: Showing "Updated Dialogs" - Facerafter - 30.07.2013

pawn Код:
cmd:world(playerid, params[])
{
       new counter, string[128];
       counter ++;
       format(string, sizeof(string), "World 1[%d/16]", counter);
       ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, "Worlds", string, "Join", "Cancel");
       return 1;
}
Something like this?


Re: Showing "Updated Dialogs" - arjanforgames - 31.07.2013

Yes. Thanks FaceCrafter. +repp