whitetigerswt / sampac_server_api Goto Github PK
View Code? Open in Web Editor NEWSA-MP Server application interface for Whitetiger's Anti-Cheat
Home Page: http://www.sixtytiger.com
SA-MP Server application interface for Whitetiger's Anti-Cheat
Home Page: http://www.sixtytiger.com
Including tempbans: http://forum.sa-mp.com/showthread.php?t=295759
that can be #define'd out if need be; requires AC client update as well
By using your api i found this problem with array index:
[02:53:04] 0
[02:53:04] [debug] Run time error 4: "Array index out of bounds"
[02:53:04] [debug] Accessing element at index 40 past array upper bound 19
[02:53:04] [debug] AMX backtrace:
[02:53:04] [debug] #0 000257c0 in public ACResponse (index=120, code=200, data[]=@0x001c5a7c "0 ...") at C:\Users\Marco\Documents\Feuer Frei\pawno\include\unitedac_api.inc:283
[02:53:04] 0
[02:53:04] [debug] Run time error 4: "Array index out of bounds"
[02:53:04] [debug] Accessing element at index 41 past array upper bound 19
[02:53:04] [debug] AMX backtrace:
[02:53:04] [debug] #0 000257c0 in public ACResponse (index=121, code=200, data[]=@0x001c5a7c "0 ...") at C:\Users\Marco\Documents\Feuer Frei\pawno\include\unitedac_api.inc:283
sscanf(data, "p< >lllA(false)["#FILES"]", acrunning, hasasi, hastrainer, Files[index - THREAD_OFFSET]);
_uac_PLUGINS is true.
This problem exists by using _uac_PLUGINS to 0.
[02:49:08] 0, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
[02:49:08] [debug] Run time error 4: "Array index out of bounds"
[02:49:08] [debug] Accessing element at index 41 past array upper bound 19
[02:49:08] [debug] AMX backtrace:
[02:49:08] [debug] #0 000268fc in public ACResponse (index=121, code=200, data[]=@0x001c5c48 "0, , , , , , , , , , , , , , ,...") at C:\Users\Marco\Documents\Feuer Frei\pawno\include\unitedac_api.inc:310
[02:50:03] 0, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
[02:50:03] [debug] Run time error 4: "Array index out of bounds"
[02:50:03] [debug] Accessing element at index 41 past array upper bound 19
[02:50:03] [debug] AMX backtrace:
[02:50:03] [debug] #0 000268fc in public ACResponse (index=121, code=200, data[]=@0x001c5c48 "0, , , , , , , , , , , , , , ,...") at C:\Users\Marco\Documents\Feuer Frei\pawno\include\unitedac_api.inc:310
Files[index - THREAD_OFFSET][i] = strcmp(str[i+3], "false") == 0 ? false : strcmp(str[i+3], "0") == 0 ? false : true;
The problem should be index - THREAD_OFFSET.
#undef THREAD_OFFSET
#define THREAD_OFFSET 100 + MAX_PLAYERS
My MAX_PLAYERS is 20 (THREAD_OFFSET: 120)
I dont want to check the code to found the problem cuz might be a server response problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.