optional parameters - sscanf
#5

It does work fine for me.

/command 2 4 2 6 -> (no syntax message)
/command 2 4 1 6 -> (no syntax message)

As long as you type 4 numbers is fine but the optional will fail because it should be at the end.

Let's say you type: /command 2 4 1

It will take 1 as the third parameter (the optional one) and the param4 will be empty; thus the syntax will be displayed.
Reply


Messages In This Thread
optional parameters - sscanf - by fordawinzz - 04.01.2014, 11:51
Re: optional parameters - sscanf - by RedFusion - 04.01.2014, 11:58
Re: optional parameters - sscanf - by J4mmyHD - 04.01.2014, 11:58
Re: optional parameters - sscanf - by fordawinzz - 04.01.2014, 12:05
Re: optional parameters - sscanf - by Konstantinos - 04.01.2014, 12:15
Re: optional parameters - sscanf - by fordawinzz - 04.01.2014, 12:18
Re: optional parameters - sscanf - by Konstantinos - 04.01.2014, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)