Help needed OnPlayerText
#3

There's question like:
Bla-bla-blah?
And then answers:
a)bla
b)blah
c)blabla

And correct ones are lets say a and c
But if player writes c,a or c, a (with spaces) then those would be true too.
And i really see no point of doing:

Код:
if(!strcmp(text , "a,c", true))
if(!strcmp(text , "c,a", true))
if(!strcmp(text , "a ,c", true))
if(!strcmp(text , " a,c", true))
if(!strcmp(text , "a , c", true))
if(!strcmp(text , " a, c", true))
And so...

I hope u understand now.
Reply


Messages In This Thread
Help needed OnPlayerText - by Henry11200 - 08.05.2009, 17:10
Re: Help needed OnPlayerText - by yom - 08.05.2009, 17:11
Re: Help needed OnPlayerText - by Henry11200 - 08.05.2009, 19:02
Re: Help needed OnPlayerText - by Henry11200 - 09.05.2009, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)