Sscanf eror
#1

Код:
[22:55:46] sscanf error: System not initialised.
[22:55:49] sscanf error: System not initialised.
Код:
CMD:napatm(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1337) return SCM(playerid, SIVA, "Nisi ovlascen.");
new pare, str[128];
if(sscanf(params, "i", pare)) return SCM(playerid, -1, "{6EF83C}BE:YP CMD | {00FFEE}/napatm [pare]");
for(new i = 1; i < MAX_ATM; i++)
{
	new fajl[30];
	format(fajl, sizeof(fajl), "sistemi/bankomati/ATM_%d.ini", i);
	if(!fexist(fajl))
	{
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid, X,Y,Z);
	Bankomat[i][bnPare] = pare;
	Bankomat[i][bnStanje] = 1;
	Bankomat[i][bnPosX] = X;
	Bankomat[i][bnPosY] = Y+3;
	Bankomat[i][bnPosZ] = Z;
	ATM_Ukras(i);
	fopen(fajl, io_write);
	SaveATM(i);
	i = 998;
	format(str, sizeof(str), "[SERVER] Admin %s je napravio novi bankomat na serveru! [ID: %d] [NOVAC: %d$]", GetName(playerid), i, pare);
	SendAdminMessage(CrvVgs, str);
	}
}
return 1;
}
What should I do? The command doesn't works.
Reply
#2

Is your sscanf up to date with the proper plugins + configured in config.cfg
Reply
#3

Yes, I have newest version, and I recompiled script. I only got this warning.
Quote:

C:\Documents and Settings\Neno\Desktop\Classic Life RolePlay\pawno\include\sscanf2.inc(69) : warning 235: public function lacks forward declaration (symbol "OnNPCModeInit")

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)