Making a command with a space and making the same one without a space. - 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)
+--- Thread: Making a command with a space and making the same one without a space. (
/showthread.php?tid=427767)
Making a command with a space and making the same one without a space. -
Denying - 03.04.2013
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
Re: Making a command with a space and making the same one without a space. -
RajatPawar - 03.04.2013
pawn Code:
new str[ 40 ];
if(sscanf( params, "S<i>(3)[4]", str ))
Re: Making a command with a space and making the same one without a space. -
Denying - 03.04.2013
Quote:
Originally Posted by Rajat_Pawar
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+