[HELP]sscanf console error
#7

Quote:
Originally Posted by bogeyman_EST
The size of the string goes right behind the specifier.
Example:
pawn Код:
new str[20];
sscanf("hello there", "s[20]", str);
dont understand in this line where i need to put the size

sscanf(line, "p<.>issiiiiiiiifffiii", pinfo[playerid][id], pinfo[playerid][nombre], pinfo[playerid][pass], pinfo[playerid][nivel], pinfo[playerid][dinero], pinfo[playerid][trabajo], pinfo[playerid][admin], pinfo[playerid][online], pinfo[playerid][phone], pinfo[playerid][banco], pinfo[playerid][skin], pinfo[playerid][px], pinfo[playerid][py], pinfo[playerid][pz], pinfo[playerid][hp], pinfo[playerid][armor], pinfo[playerid][sp]);
Reply


Messages In This Thread
[HELP]sscanf console error - by Zafire2008 - 26.01.2010, 03:29
Re: [HELP]sscanf console error - by Zafire2008 - 26.01.2010, 19:07
Re: [HELP]sscanf console error - by Zafire2008 - 26.01.2010, 22:29
Re: [HELP]sscanf console error - by bogeymanEST - 27.01.2010, 05:09
Re: [HELP]sscanf console error - by Zafire2008 - 27.01.2010, 11:57
Re: [HELP]sscanf console error - by bogeymanEST - 29.01.2010, 13:29
Re: [HELP]sscanf console error - by Zafire2008 - 29.01.2010, 19:40
Re: [HELP]sscanf console error - by bogeymanEST - 30.01.2010, 10:03

Forum Jump:


Users browsing this thread: 1 Guest(s)