Question. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question. (
/showthread.php?tid=211954)
Question. -
armyoftwo - 16.01.2011
pawn Код:
if(inputtext == "Keyword")
It gives me an error, is there an other way besides strcmp()?
Re: Question. -
[WF]Demon - 16.01.2011
and what is wrong with strcmp? you can just do this
pawn Код:
if(strcmp(inputtext, "Keyword", true) == 0)
{
//Rest here
}
Re: Question. -
Lorenc_ - 16.01.2011
if(strval(inputtext) == "Keyword")
Maybe that.
Re: Question. -
Kase - 16.01.2011
Quote:
Originally Posted by Lorenc_
if(strval(inputtext) == "Keyword")
Maybe that.
|
I doubt it will work, since "Keyword" is not an integer. I recall using the character ' instead of ", but I'm
really unsure. It's worth a try, though
strcmp could work out, why aren't you using it?