View Single Post
Old 14/05/2020, 04:10 PM   #176
natovan
Little Clucker
 
natovan's Avatar
 
Join Date: Nov 2019
Posts: 31
Reputation: 0
Default Re: sscanf - Now supports npcmodes

Help. I don't understand why the id var is always 101 no matter what number I pass to it.

PHP Code:
new id;
new 
text;
new 
param[64 1];
param "1 Texttext. Texttext text. Texttext.";

sscanf(param"us[65]"idtext);

printf("params = %s"param);
printf("id = %d"id);
printf("text = %s"text); 
Output:
Code:
params = 1 Texttext. Texttext text. Texttext.
id = 101
text = Texttext. Texttext text. Texttext.
natovan is offline   Reply With Quote