Giter Club home page Giter Club logo

sampac_server_api's People

Contributors

whitetigerswt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

marcoacierno

sampac_server_api's Issues

ACResponse index

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.

if THREAD_OFFSET > MAX_PLAYERS

#undef THREAD_OFFSET
#define THREAD_OFFSET 100 + MAX_PLAYERS

endif

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.