Learning Sscanf
#10

sscanf will fail if it doesn't have the required "space". You use the variables before defining them (mprofitt). That's fail. On a related note, if you meet any of the "bad" cases you want to skip the rest of the execution. Basically, use return. You wouldn't want to give a player money after you just told him he couldn't would you?
Reply


Messages In This Thread
Learning Sscanf - by Lajko1 - 11.12.2009, 19:18
Re: Learning Sscanf - by mprofitt - 11.12.2009, 19:29
Re: Learning Sscanf - by DeathOnaStick - 11.12.2009, 19:32
Re: Learning Sscanf - by mprofitt - 11.12.2009, 19:38
Re: Learning Sscanf - by DeathOnaStick - 11.12.2009, 19:50
Re: Learning Sscanf - by dice7 - 11.12.2009, 19:56
Re: Learning Sscanf - by DeathOnaStick - 11.12.2009, 20:00
Re: Learning Sscanf - by dice7 - 11.12.2009, 20:02
Re: Learning Sscanf - by (.Aztec); - 11.12.2009, 20:12
Re: Learning Sscanf - by Malice - 11.12.2009, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)