Please, how to make one command with two usages? Using ycmd sscanf2
#4

Two numbers:
pawn Код:
if(restarth > 9 || restartm > 9) //Either minutes or hours is 10+, more than 1 number.
Three numbers:
pawn Код:
if(restarth > 99 || restartm >> 99) //Either minutes or hours is 100+, more than 2 numbers.
This is just an easy example, I think there would of been functions written for this kind of thing, but this is the most simple way of doing it.

--
Alternatively, just ask me what you want added into the command and I'll gladly add it for you. I will explain the code in a PM if you wish.
Reply


Messages In This Thread
Please, how to make one command with two usages? Using ycmd sscanf2 - by Riwerry - 29.12.2013, 09:40
Re: Please, how to make one command with two usages? Using ycmd sscanf2 - by Threshold - 29.12.2013, 10:03
Re: Please, how to make one command with two usages? Using ycmd sscanf2 - by Riwerry - 29.12.2013, 10:14
Re: Please, how to make one command with two usages? Using ycmd sscanf2 - by Threshold - 29.12.2013, 10:33

Forum Jump:


Users browsing this thread: 1 Guest(s)