Making a command with a space and making the same one without a space.
#1

Yeah, the title is a bit dumb, sorry.

Well, what I want to make a is something like: /radio and /radio help.
So, in the beginning I used !strcmp(params, "help") in an if statement and an else statement after it.
But then I'd get myself that everytime I type /radio or /radio klsdgnsdjgsg I'd get the same result, which was expectable. ( using ZCMD )

So, I wanted to know if there is any way of doing what I wanted to do.

Thank you in advance.

- Denying
Reply
#2

pawn Code:
new str[ 40 ];
if(sscanf( params, "S<i>(3)[4]", str ))
Reply
#3

Quote:
Originally Posted by Rajat_Pawar
View Post
pawn Code:
new str[ 40 ];
if(sscanf( params, "S<i>(3)[4]", str ))
A-ha, didn't think about it this way, silly me..

Thank you very much, rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)