Sscanf error..
#1

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.
Reply
#2

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.
Reply
#3

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

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.
Reply
#5

Download sscanf, and replace your old one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)