Question.
#1

pawn Код:
if(inputtext == "Keyword")
It gives me an error, is there an other way besides strcmp()?
Reply
#2

and what is wrong with strcmp? you can just do this
pawn Код:
if(strcmp(inputtext, "Keyword", true) == 0)
{
//Rest here
}
Reply
#3

if(strval(inputtext) == "Keyword")

Maybe that.
Reply
#4

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)