Posts: 441
Threads: 73
Joined: Jun 2011
Reputation:
0
Hello, I'm trying to make an offline faction uninvite system and I'm having a little problem with this. When I show the player names into the dialog it will show up as a listitem. How to check what player I uninvite when I click on it?
Posts: 39
Threads: 5
Joined: Dec 2011
Reputation:
0
As you are using the list type and you have two buttons, you can use one as invite and other as un invite
so use if(!response) and if(response) ans use then list item ids under it.
-----
I hope it helped
Posts: 32
Threads: 1
Joined: Sep 2012
Reputation:
0
So, each player name is on a listitem? If your dialog type is DIALOG_STYLE_LIST (which I suppose it is, of course), then inputtext[] should return the text of the list item. You could parse that through a loop and see if the player's name matches the inputtext, and then uninvite him.
There might be a more efficient way to do this, though.
Posts: 32
Threads: 1
Joined: Sep 2012
Reputation:
0
You're welcome! Tell me if you have any errors with this method.