SA-MP Forums Archive
Sscanf error.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sscanf error.. (/showthread.php?tid=471938)



Sscanf error.. - Tagathron - 26.10.2013

I just made a simple kick cmd,to check if sscanf is working as i had bugs before,and when i use the command IG,it prints "USAGE:/kick [PLAYER ID]" no matter what i type after /kick.
But also i've just noticed it sends this error in console when i use the command:
Code:
sscanf error: System not initialised.
Here is the CMD code ,idk if you need to see it:
Code:
CMD:kick(playerid, params[])
{
	new pID;
	if(sscanf(params, "u", pID)) return SendClientMessage(playerid, 0xF0FFCF0, "USAGE:/kick [PLAYER ID]");
	Kick(pID);
	return 1;
}
I think i got latest sscanf .inc and .dll,i got them from here,sa-mp forums.

Thanks in advance.


Re: Sscanf error.. - Patrick - 26.10.2013

Read this.
Quote:
Originally Posted by ******
you need to make sure that you have recompiled ALL your scripts using the LATEST version of "sscanf2.inc". Older versions didn't really require this as they only had two natives - "sscanf" and "unformat", the new version has some other functions - you don't need to worry about them, but you must use "sscanf2.inc" so that they are correctly called. If you think you have done this and STILL get the error then try again - make sure you are using the correct version of PAWNO for example.



Re: Sscanf error.. - Tagathron - 26.10.2013

So i need to compile all scripts in gamemode folder again?


Re: Sscanf error.. - Konstantinos - 26.10.2013

You need to download sscanf again and replace your old files (plugin and include files) with the latest one. After done that, re-compile the scripts you used sscanf in them.


Re: Sscanf error.. - PCPold - 26.10.2013

Download sscanf, and replace your old one.