Help needed OnPlayerText
#1

I know that it can be done so:
Код:
if(!strcmp(text , "a,b,c", true))
But how can i do it so that i can writ like b, c ,a and so on.
So spaces and order diffrence.

Sorry for bad english but i hope u understand.
Reply
#2

I don't understand what you want to do, you should give a better example.
Reply
#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
#4

Can i split the text[] like a/b or a/b/c and so?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)