Problems with installing scanff2 - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problems with installing scanff2 (
/showthread.php?tid=220569)
Problems with installing scanff2 -
showarn - 03.02.2011
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
and placed the map in my main directory folder there i got the server.exe
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?
Re: Problems with installing scanff2 - [L3th4l] - 03.02.2011
Do you have the 'stock' version of sscanf anywhere in your script? If so, you can remove that.
Re: Problems with installing scanff2 -
showarn - 03.02.2011
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;
}
Re: Problems with installing scanff2 -
showarn - 03.02.2011
like 40 stocks
Re: Problems with installing scanff2 -
randomkid88 - 03.02.2011
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.
Re: Problems with installing scanff2 -
showarn - 03.02.2011
iam running windovs 7 and it just stops running when i compile :S
Re: Problems with installing scanff2 -
showarn - 03.02.2011
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?
Re: Problems with installing scanff2 -
showarn - 04.02.2011
Thankz