02.01.2014, 17:47
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[])
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[])