Comparing listitem to text
#1

How can I get the listitems name,so i could compare to text?
Reply
#2

Please explain more.

And comparing strings can be done by strcmp
Reply
#3

Well if(strcmp(listitem,"watch",true)==0) doesn't work. I'm trying to create a dialog inventory. And the showing works great,but now i need a way to check on what did the player press
Reply
#4

well?
Reply
#5

Inputtext contains the text of the selected item.
Reply
#6

So you mean i should compare it to inputtext?
Reply
#7

trttttttttttye1234 i like trains

(post removed, obviously)
Reply
#8

Well i know that...But i need a way to compare listitems name.
Reply
#9

smk weed every day

(post removed, obviously)
Reply
#10

For a dialog inventory!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)