Sscanf
#2

While 'n' is number, people will only really be inputting integers, so you may as well change it to 'i'.

Asides from that, to get to the actual problem, 'params' includes EVERYTHING after the command, including the 'joinrank' 'sub-command'. You haven't shown the entire command so I'm not sure what it's meant to be, but for example '/set joinrank <rank>', you're passing the entire 'params' string in to sscanf, which includes the 'joinrank' part of the string.
Reply


Messages In This Thread
Sscanf - by EliteApple - 31.01.2014, 00:34
Re: Sscanf - by MP2 - 31.01.2014, 02:00
Re: Sscanf - by DaniceMcHarley - 31.01.2014, 05:31
Re: Sscanf - by SickAttack - 31.01.2014, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)