SA-MP Forums Archive
Question about 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: Question about dialogs (/showthread.php?tid=662015)



Question about dialogs - Oficer - 21.12.2018

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

For example: https://i.imgur.com/WGwaEYL.png


Re: Question about dialogs - Chyakka - 21.12.2018

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");