Ahoj na netu jsem si našel anticheat pack(mám svůj anticheat ale je zastaralí a chci se podívat jak fungují ty dnešní) a v jednom includu mi to píše undefined symbol "GetSVarString" a já nwm jak se toho zbavit zkoušel jsem new a to taky nepomohlo spíše zhoršilo
error: C:\pawno\include\Anti-Cheat/BugCheats.inc(103) : error 017: undefined symbol "GetSVarString"
C:\pawno\include\Anti-Cheat/BugCheats.inc(103) : warning 202: number of arguments does not match definition
code:
public OnPlayerConnect(playerid)
{
playerData[playerid][falingTicks] = -1;
playerData[playerid][playerOldZ] = -999.0;
if(playerData[playerid][isPlayerConnected])
{
#if defined OnPlayerBugAttempt
OnPlayerBugAttempt(playerid, 3);
#endif
}
else playerData[playerid][isPlayerConnected] = true;
if(IsPlayerNPC(playerid))
{
new rAB_PIP[17];
GetPlayerIp(playerid, rAB_PIP, sizeof(rAB_PIP));
new rAB_ServerIP[17];
GetSVarString("bind", rAB_ServerIP, sizeof(rAB_ServerIP)); // zde to dělá neplechu :D
if (!!strcmp(rAB_PIP, rAB_ServerIP))
{
#if defined OnPlayerBugAttempt
OnPlayerBugAttempt(playerid, 1);
#endif
}
}
#if defined RAB_OnPlayerConnect
return RAB_OnPlayerConnect(playerid);
#else
return 1;
#endif
}
Dotaz
weedenek 0
Ahoj na netu jsem si našel anticheat pack(mám svůj anticheat ale je zastaralí a chci se podívat jak fungují ty dnešní) a v jednom includu mi to píše undefined symbol "GetSVarString" a já nwm jak se toho zbavit zkoušel jsem new a to taky nepomohlo spíše zhoršilo
error: C:\pawno\include\Anti-Cheat/BugCheats.inc(103) : error 017: undefined symbol "GetSVarString"
C:\pawno\include\Anti-Cheat/BugCheats.inc(103) : warning 202: number of arguments does not match definition
code:
public OnPlayerConnect(playerid)
{
playerData[playerid][falingTicks] = -1;
playerData[playerid][playerOldZ] = -999.0;
if(playerData[playerid][isPlayerConnected])
{
#if defined OnPlayerBugAttempt
OnPlayerBugAttempt(playerid, 3);
#endif
}
else playerData[playerid][isPlayerConnected] = true;
if(IsPlayerNPC(playerid))
{
new rAB_PIP[17];
GetPlayerIp(playerid, rAB_PIP, sizeof(rAB_PIP));
new rAB_ServerIP[17];
GetSVarString("bind", rAB_ServerIP, sizeof(rAB_ServerIP)); // zde to dělá neplechu :D
if (!!strcmp(rAB_PIP, rAB_ServerIP))
{
#if defined OnPlayerBugAttempt
OnPlayerBugAttempt(playerid, 1);
#endif
}
}
#if defined RAB_OnPlayerConnect
return RAB_OnPlayerConnect(playerid);
#else
return 1;
#endif
}
Link to comment
Share on other sites
7 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now