Question about dialogs
#1

I have problem, because I have dialog and how I can save who option choose player ?

For example: https://i.imgur.com/WGwaEYL.png
Reply
#2

You could utilize player variables to track what you're editing on a dialog.

https://sampwiki.blast.hk/wiki/SetPVarInt

So if you were to choose rank 1, when you select that on the dialog you'd want to:

Код:
SetPVarInt(playerid, "RankDialogIndex", listitem);
And then when you change name you can retrieve that variable from another dialog with:

Код:
GetPVarInt(playerid, "RankDialogIndex");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)