Question about a command
#3

https://sampforum.blast.hk/showthread.php?tid=120356

That should help your situation.

In a if-statement:
sscanf(params, ""Specifiers"", variable1, variable2))

sscanf will check anything that is after /cmd [here...] [and here] [and here] [etc...]
If nothing is written the if-statement will be true. Read about specifiers on the thread and you'll see what I mean, also look at the examples.

The "params" in the sscanf means the params you use in zcmd for instance:
CMD:yourCmd(playerid, params[])
Reply


Messages In This Thread
Question about a command - by K9IsGodly - 02.01.2014, 17:40
Re: Question about a command - by GiamPy. - 02.01.2014, 17:46
Re: Question about a command - by Hansrutger - 02.01.2014, 17:47
Re: Question about a command - by K9IsGodly - 02.01.2014, 17:48
Re: Question about a command - by Hansrutger - 02.01.2014, 17:52
Re: Question about a command - by GiamPy. - 02.01.2014, 17:55
Re: Question about a command - by K9IsGodly - 02.01.2014, 17:55
Re: Question about a command - by GiamPy. - 02.01.2014, 17:59
Re: Question about a command - by K9IsGodly - 02.01.2014, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)