14.03.2015, 07:10
Hello, so I've searched everywhere, with no luck, to try and find a tutorial or command that might help me with what I am after.
Basically I want to make my /ban command syntax to be /ban [length] - (1w/1m/1h) [id/name] [reason].
Where:
- 1w = 1 week;
- 1m = 1 month;
- 1h = 1 hour and so on.
I am using sscanf to break down the parameters, but can't seem to find out how to make it detect the length.
Any help would be appreciated.
Thanks,
CM707
Basically I want to make my /ban command syntax to be /ban [length] - (1w/1m/1h) [id/name] [reason].
Where:
- 1w = 1 week;
- 1m = 1 month;
- 1h = 1 hour and so on.
I am using sscanf to break down the parameters, but can't seem to find out how to make it detect the length.
Any help would be appreciated.
Thanks,
CM707