21.12.2018, 14:28
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:
And then when you change name you can retrieve that variable from another dialog with:
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);
Код:
GetPVarInt(playerid, "RankDialogIndex");