Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
Store the players on the list in a variable and then use that variable to get the player the user clicked on by using "listitem" as the index number of the variable. You only need to store the IDs of the players, you can use it to get their name, etc.
Posts: 708
Threads: 140
Joined: Jan 2013
Reputation:
0
Well obviously you are making that list using some variables. Use those same variables to retrieve customer info
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
If you select a listitem, the text that it contains will be stored in inputtext, so you can extract it from there using a splitting technique like sscanf. However, you cannot extract information that wasn't there in the first place, like the player's id.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Something to note is that players might leave while you are on that dialog. I made a simple script to detect this, I'll post it later if I remember.