Showing "Updated Dialogs"
#1

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?
Reply
#2

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

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

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?
Reply
#5

Yes. Thanks FaceCrafter. +repp
Reply


Forum Jump:


Users browsing this thread: