SA-MP Forums Archive
Comparing listitem to text - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Comparing listitem to text (/showthread.php?tid=419996)



Comparing listitem to text - dusk - 03.03.2013

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


Re: Comparing listitem to text - emokidx - 03.03.2013

Please explain more.

And comparing strings can be done by strcmp


Re: Comparing listitem to text - dusk - 03.03.2013

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


Re: Comparing listitem to text - dusk - 03.03.2013

well?


Re: Comparing listitem to text - Vince - 03.03.2013

Inputtext contains the text of the selected item.


Re: Comparing listitem to text - dusk - 03.03.2013

So you mean i should compare it to inputtext?


Re: Comparing listitem to text - Mean - 03.03.2013

trttttttttttye1234 i like trains

(post removed, obviously)


Re: Comparing listitem to text - dusk - 03.03.2013

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


Re: Comparing listitem to text - Mean - 03.03.2013

smk weed every day

(post removed, obviously)


Re: Comparing listitem to text - dusk - 03.03.2013

For a dialog inventory!