NexiusTailer / Nex-AC

Anticheat system
https://pawn.wiki/index.php?/topic/27641-nex-ac/
GNU Lesser General Public License v3.0
212 stars 156 forks source link

fix missing constant #322

Closed RizkyLimit closed 1 month ago

RizkyLimit commented 1 month ago

Have issue with compiler 3.10.10 that had a warning because missing constant on parameter ac_OnCheatDetected and ac_KickWithCode

NexiusTailer commented 1 month ago

Your code is not compatible with the default includes:

F:\pawno\include\nex-ac.inc(9461) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

1 Error.

as the "BlockIpAddress" function which is used to deal with the ip-address doesn't have "const" by default.