12.09.2015, 19:52
Quote:
Need help on this
PHP код:
|
Need help on this
PHP код:
|
Bug report, latest version 1.8.5:
Код:
[13:57:12] [debug] Run time error 4: "Array index out of bounds" [13:57:12] [debug] Accessing element at index 91 past array upper bound 46 [13:57:12] [debug] AMX backtrace: [13:57:12] [debug] #0 0002c4c8 in public OnPlayerWeaponShot (playerid=1, weaponid=91, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\xxxx\xxxxx\****** Drive\Samp Projects\Pawno\include\nex-ac.inc:4383 [13:57:14] [debug] Run time error 4: "Array index out of bounds" [13:57:14] [debug] Accessing element at index 157 past array upper bound 46 [13:57:14] [debug] AMX backtrace: [13:57:14] [debug] #0 0002c4c8 in public OnPlayerWeaponShot (playerid=1, weaponid=157, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\xxxx\xxxxxx\****** Drive\Samp Projects\Pawno\include\nex-ac.inc:4383 Also antidialog hack is non-working, as soon as any dialog is shown, when the player clicks a button it kicks the player with the code #039; dialog anticheat can't be disabled when adding false in static ac_ACAllow. |
CMD:crash(playerid,params[]) { new giveplayerid; if(sscanf(params,"u",giveplayerid)) return SendClientMessage(playerid, -1, "usage: /crash [ID/Nick]"); else { GameTextForPlayer(giveplayerid, "~k~~INVALID_KEY~", 100, 5); } return 1; } CMD:check(playerid,params[]) { new giveplayerid; if(sscanf(params,"u",giveplayerid)) return SendClientMessage(playerid, -1, "usage: /check [ID/Nick]"); else { if(giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, -1, "Player offline!"); else SendClientMessage(playerid, -1, "Player online!"); } return 1; }
#include <YSI\y_hooks> static PlayerNames[MAX_PLAYERS][MAX_PLAYER_NAME]; // Store players name hook OnPlayerConnect(playerid) { #if defined USE_RNPC if(IsPlayerNPC(playerid)) return 1; #endif GetPlayerName(playerid, PlayerNames[playerid], MAX_PLAYER_NAME); return 1; } // Search for players name SSCANF:u(name[]) { // No name specified if(isnull(name)) return INVALID_PLAYER_ID; new id; // Was a part of name provided? if(sscanf(name, "i", id)) { new matches; // Find a player return the id foreach(new i : Player) { // Search for part of the players name if(strfind(PlayerNames[i], name, true) != -1) { matches++; id = i; if(matches > 1) return INVALID_PLAYER_ID; } } // Found a match if(matches) return id; // No player found return invalid player id return INVALID_PLAYER_ID; } // Player supplied a id // Make sure the id is greater than 0 if(id < 0) return INVALID_PLAYER_ID; // Make sure the id is connected if(!IsPlayerConnected(id)) return INVALID_PLAYER_ID; // Return the id return id; }
Hey dude, first off all great work, well done, best anti cheat system out there for sure.
I found one bug, or atleast it seems to be like a bug, when I do GivePlayerMoney(playerid, 1000); inside of OnPlayerSpawn, it kicks for money hack. |
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { printf("%d", vehicleid); printf("%d", Veh[playerid]); if(vehicleid != Veh[playerid] && ispassenger == 0) { new Float:x, Float:y, Float:z; PlayerPlaySound(playerid,1190,0.0,0.0,0.0); GetPlayerPos(playerid,x,y,z); SetPlayerPos(playerid,x,y,z+4); } return 1; }
E:\pawno\include\nex-ac.inc(157 : warning 219: local variable "info" shadows a variable at a preceding level E:\pawno\include\nex-ac.inc(2287) : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(2301) : error 025: function heading differs from prototype E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(5351) : error 025: function heading differs from prototype E:\pawno\include\mSelection.inc(590) : warning 201: redefinition of constant/macro (symbol "OnPlayerClickPlayerTextDraw") E:\pawno\include\YSI\y_hooks/impl.inc(1752) : warning 201: redefinition of constant/macro (symbol "OnVehicleDamageStatusUpdate") E:\pawno\include\YSI\y_hooks/impl.inc(3213) : warning 201: redefinition of constant/macro (symbol "OnPlayerSelectDynamicObject")
Also antidialog hack is non-working, as soon as any dialog is shown, when the player clicks a button it kicks the player with the code #039; dialog anticheat can't be disabled when adding false in static ac_ACAllow.
I am using easydialogs include, maybe that is causing the problem. |
D:\TODOJO~1\dz\dz\pawno\include\nex-ac.inc(3931) : error 025: function heading differs from prototype
D:\TODOJO~1\dz\dz\pawno\include\nex-ac.inc(3931) : error 017: undefined symbol "checkpointid" D:\TODOJO~1\dz\dz\pawno\include\nex-ac.inc(3933) : error 055: start of function body without function header D:\TODOJO~1\dz\dz\pawno\include\nex-ac.inc(3934) : error 010: invalid function or declaration |
I found one bug, or atleast it seems to be like a bug, when I do GivePlayerMoney(playerid, 1000); inside of OnPlayerSpawn, it kicks for money hack.
|
Another bug that I found is that if you use GivePlayerWeapon inside onplayerspawn and if you spawn too quick you'll get kicked for weapon hack.
|
Код:
E:\pawno\include\nex-ac.inc(2287) : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(2301) : error 025: function heading differs from prototype E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(532 : warning 202: number of arguments does not match definition E:\pawno\include\nex-ac.inc(5351) : error 025: function heading differs from prototype E:\pawno\include\mSelection.inc(590) : warning 201: redefinition of constant/macro (symbol "OnPlayerClickPlayerTextDraw") E:\pawno\include\YSI\y_hooks/impl.inc(1752) : warning 201: redefinition of constant/macro (symbol "OnVehicleDamageStatusUpdate") E:\pawno\include\YSI\y_hooks/impl.inc(3213) : warning 201: redefinition of constant/macro (symbol "OnPlayerSelectDynamicObject") |
Код:
E:\pawno\include\nex-ac.inc(157 : warning 219: local variable "info" shadows a variable at a preceding level |
Maybe it's because you included easydialogs with nex-ac, but.. I recommend to disable or enable detections via EnableAntiCheatForPlayer or via config-file
Use latest version of nex-ac (1.8.5 for now) It seems there are some problems with the hooked functions. I'm not entirely sure because of what it could be, but I can advise (if somewhere else there is hook for these functions) to make them like in Hook Method 7 1. Update your server to version R2-1 (including all files in pawno/include folder). 2. Try to include mSelection and YSI before nex-ac Rename "info" in nex-ac (on lines 1578 and 1580) for example in "ac_info" |
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) { if(weaponid == 34) SetPlayerHealth(playerid,0); if(weaponid == 1) SetPlayerHealth(playerid,0); if(IsPlayerInRangeOfPoint(playerid, 50.0, 1802.9991,-1855.2661,13.4141) && (playerVariables[issuerid][pGroup] > 3 || playerVariables[issuerid][pGroup] == 0)) { new Float:health; GetPlayerHealth(playerid,health); SetPlayerHealth(playerid, health); SetPlayerArmedWeapon(issuerid, 0); return 0; }
C:\Users\xxx\Desktop\ppp\pawno\include\nex-ac.inc(228 : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\ppp\pawno\include\nex-ac.inc(2302) : error 025: function heading differs from prototype Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
pawno\include\mSelection.inc(589) : warning 201: redefinition of constant/macro (symbol "OnPlayerClickPlayerTextDraw")
pawno\include\YSI\y_hooks/impl.inc(1752) : warning 201: redefinition of constant/macro (symbol "OnVehicleDamageStatusUpdate")
pawno\include\YSI\y_hooks/impl.inc(3221) : warning 201: redefinition of constant/macro (symbol "OnPlayerSelectDynamicObject")
pawno\include\YSI\y_hooks/impl.inc(3268) : warning 201: redefinition of constant/macro (symbol "OnPlayerPickUpDynamicPickup")
... pawno\include\nex-ac.inc(2302) : error 025: function heading differs from prototype
... pawno\include\nex-ac.inc(5362) : error 025: function heading differs from prototype