Understanding Sscanf.
#7

Quote:
Originally Posted by 2KY
Посмотреть сообщение
I believe this is what you're looking for.

E.G:

pawn Код:
new UserID, Float:Height;
if( sscanf( params, "uf", UserID, Height ) )
To get him more specified

params = the parameters typed by the player

"uf" = u = integer (e.g 1,2,3,4) which is assigned at the player ID......f=fload (non-integer e.g 12.174)

So "UserID" is assigned to "u" beacause the ID of the player can be only an INTEGER NUMBER (0 - 500)
"Height" assigned to "f" beacuse it could be for example 1.74 .
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: 3 Guest(s)