Optional sscanf parameters
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
You can't really, the point of the defaults is to pick something they can't type, of course that isn't always possible. Sorry, just assume that if they typed a stupid value they're being stupid, and try make the message generic like "please enter a value between 0 and 27" - then it doesn't matter if what they typed was wrong or if they typed nothing.
It's not meant to return a message:

The command is /vcolor [color1] [color2]

If color2 isn't specified, it should be made the same as color1.

Would it be possible to use NaN? If not I guess -1 will do.
Reply


Messages In This Thread
Optional sscanf parameters - by MP2 - 20.10.2012, 18:43
Re: Optional sscanf parameters - by Babul - 20.10.2012, 19:00
Re: Optional sscanf parameters - by MP2 - 20.10.2012, 21:40
Re: Optional sscanf parameters - by MP2 - 20.10.2012, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)