Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
Hi SA-MP Community,
I want answers to these questions explain me.(No wiki links please, I read them already).
Q1).:What is sscanf? Explain its function.
Q2).:What is strtok, tmp?
Will ask more questions later.
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
With sscanf we can split it in many other parts? Is it same like params?
Posts: 1,905
Threads: 63
Joined: Oct 2011
Reputation:
0
params is just the name of the command text ZCMD and YCMD uses.
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
With sscanf we can split it in many other parts?
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
Have you tried reading the sscanf thread? You should understand it if so.
Strtok splits strings into tokens like sscanf does but it's slower, less reliable and doesn't have as much functionality as sscanf and you also have to do additional function calls to turn the tokens into the type of data you need (ints, floats, bools).
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
Thank you dude. +3rep to you!