Problems with installing scanff2
#1

Hello i got some problems when i install scanf2 here is my problem

i put in top of my gamemode


Код:
#include <sscanf2>
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <dutils>
#include <Dini>
#include <dudb>
#include <djson>
#include <streamer>
and i placed in my pawn/includes
Код:
sscanf2.inc
and placed the map in my main directory folder there i got the server.exe
Код:
MAP sscanf
and i placed in my plugins folder
Код:
sscanf.so and sscanf.dll
and also placed this in my server.cfg

Код:
plugins streamer sscanf
when i try to compile my gamemode its stops running

any1 now what couses this?
Reply
#2

Do you have the 'stock' version of sscanf anywhere in your script? If so, you can remove that.
Reply
#3

i found this
Код:
stock GivePlayerCash(playerid, money)
{
	PlayerInfo[playerid][pCash] += money;
	ResetMoneyBar(playerid);
	UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]);
	return PlayerInfo[playerid][pCash];
}

stock SetPlayerCash(playerid, money)
{
	PlayerInfo[playerid][pCash] = money;
	ResetMoneyBar(playerid);
	UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]);
	return PlayerInfo[playerid][pCash];
}

stock ResetPlayerCash(playerid)
{
	PlayerInfo[playerid][pCash] = 0;
	ResetMoneyBar(playerid);
	UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]);
	return PlayerInfo[playerid][pCash];
}

stock GetPlayerCash(playerid)
{
	return PlayerInfo[playerid][pCash];
}
//----------------------[ PlayerName() ] -------------------------------
stock PlayerName(playerid)
{
	new name[255];
	GetPlayerName(playerid, name, 255);
	return name;
}

//----------------------[ PlayerIP() ] -------------------------------
stock PlayerIP(playerid)
{
	new ip[16];
	GetPlayerIp(playerid, ip, 16);
	return ip;
}
Reply
#4

like 40 stocks
Reply
#5

Is sscanf one of those stocks? We don't need the rest, just search for "stock sscanf" or maybe "public sscanf" and if either of them exists, you can remove it.
Reply
#6

iam running windovs 7 and it just stops running when i compile :S
Reply
#7

i found a line with stock sscanf

Код:
stock sscanf(string[], format[], {Float,_}:...)
Код:
#undef __SSCANF_FOREACH__
Код:
#if defined __SSCANF_FOREACH__
Код:
#define __SSCANF_FOREACH__
thats all sscanf lines i can find in my gm

what should i do change remove anything?
Reply
#8

Thankz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)