SA-MP Forums Archive
sscanf error: System not initialised. - 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: System not initialised. (/showthread.php?tid=565949)



sscanf error: System not initialised. - TiXz0r - 02.03.2015

i havee problem, before is all working. but, im update sscanf2 and got 2 problems.


Код:
sscanf error: System not initialised.
when type cmd: /a test

CMD:a(playerid, params[])
{
if(sscanf(params, "s[128]", adminctext)) return SendClientMessage(playerid, COLOR_CYAN, "[KORISTI]: "COL_WHITE"/a [text]");

// im delete other functions..
return 1;
}

she say me: [KORISTI]: "COL_WHITE"/a [text], but before, working, this is on all cmd where using sscanf.


and have warning:
Код:
public function lacks forward declaration (symbol "OnNPCModeInit")



Re : sscanf error: System not initialised. - Golimad - 02.03.2015

check this :
new adminctext[128];
if(sscanf(params, "s", adminctext))


Re: sscanf error: System not initialised. - 1fret - 02.03.2015

Make sure you change
#define <sscanf>
to
#define <sscanf2>

And you should create a forward for this
Forward OnNPCModeInit(params here);
Public OnNPCModeInit(params here)