Understanding Sscanf.
#6

Quote:
Originally Posted by ******;520110[size=5
Specifiers[/size]

The available specifiers (the letters "u", "i" and "s" in the codes above) are below.
  • Basic specifiers
Код:
Specifier(s)			Name				Example values
	i, d			Integer				1, 42, -10
	c			Character			a, o, *
	l			Logical				true, false
	b			Binary				01001, 0b1100
	h, x			Hex				1A, 0x23
	o			Octal				045 12
	n			Number				42, 0b010, 0xAC, 045
	f			Float				0.7, -99.5
	g			IEEE Float			0.7, -99.5, INFINITY, -INFINITY, NAN, NAN_E
	u			User name/id (bots and players)	******, 0
	q			Bot name/id			ShopBot, 27
	r			Player name/id			******, 42
I believe this is what you're looking for.

E.G:

pawn Код:
new UserID, Float:Height;
if( sscanf( params, "uf", UserID, Height ) )
Reply


Messages In This Thread
Understanding Sscanf. - by HazardGaming - 20.04.2012, 12:06
Re: Understanding Sscanf. - by RollTi - 20.04.2012, 12:07
Re: Understanding Sscanf. - by ReneG - 20.04.2012, 12:08
Re: Understanding Sscanf. - by Twisted_Insane - 20.04.2012, 12:10
Re: Understanding Sscanf. - by HazardGaming - 20.04.2012, 12:12
Re: Understanding Sscanf. - by 2KY - 20.04.2012, 12:50
Re: Understanding Sscanf. - by TheArcher - 20.04.2012, 13:21

Forum Jump:


Users browsing this thread: 2 Guest(s)