sscanf error: System not initialised.
#1

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")
Reply
#2

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

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)