SSCANF Help
#10

Hi all, i have fix this problem, if you need it too just copy that code:
Код:
CMD:sscanftest(playerid, params[])
{
	new
		dollar,
		cent,
		string[12];
		
        if (sscanf(params, "uS()[12]", playerid, string))
		return SendErrorMessage(playerid, "/sscanf [playerid]");

 	if (sscanf(string, "p<.>dd<10-99>", dollar, cent))
        return SendErrorMessage(playerid, "/sscanf [playerid] [dollar.cent]");

	printf("%d", playerid); // Will be print playerid
	printf("%d", dollar); // Will be print dollar
	printf("%d", cent); // Will be print cent
	return 1;
}
Error: Show this message : sscanf warning: Format specifier does not match parameter count.
and <10-99> not working

Sorry for my bad english ! Thanks all for help me !
Reply


Messages In This Thread
SSCANF Help - by Raefal - 09.11.2014, 11:08
Re: SSCANF Help - by UltraScripter - 09.11.2014, 11:12
Re: SSCANF Help - by Raefal - 09.11.2014, 11:23
Re: SSCANF Help - by DavidBilla - 09.11.2014, 11:23
Re: SSCANF Help - by Raefal - 09.11.2014, 11:32
Re: SSCANF Help - by biker122 - 09.11.2014, 11:33
Re: SSCANF Help - by HY - 09.11.2014, 11:39
Re: SSCANF Help - by Raefal - 09.11.2014, 11:44
Re: SSCANF Help - by UltraScripter - 09.11.2014, 11:48
Re: SSCANF Help - by Raefal - 09.11.2014, 11:57

Forum Jump:


Users browsing this thread: 2 Guest(s)