Getting correct IDS from a dialog
#2

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
I won't be able to get the slot id in listitem on OnDialogResponse then.
If you don't know what I'm trying to say is this, I currently use listitem to get the ID of the selected item.
You are wrong, you can get the slot id by using sscanf on inputtext, but you have to show slot id in dialog window.

Example:

Код:
format(string, 32, "%d\t%s", vehicleid, veh_name);
ShowPlayerDialog...

OnDialogResponse:

sscanf(inputtext, "ds[32]", vehicleid, veh_name);
Reply


Messages In This Thread
Getting correct IDS from a dialog - by StrikerZ - 11.10.2017, 07:31
Re: Getting correct IDS from a dialog - by raydx - 11.10.2017, 07:48
Re: Getting correct IDS from a dialog - by StrikerZ - 11.10.2017, 08:20

Forum Jump:


Users browsing this thread: 1 Guest(s)