Jump to content

Question

Posted

Oare de ce imi apar mie erorile astea [debug]?

Si imi cade serverul cand depaseste 30 playeri/sau am lag

Spoiler

[23:51:57] [debug] Run time error 4: "Array index out of bounds"
[23:51:57] [debug]  Accessing element at index 65535 past array upper bound 1999
[23:51:57] [debug] AMX backtrace:
[23:51:57] [debug] #0 00161528 in ?? (65535) from gmm.amx
[23:51:57] [debug] #1 001f90b8 in ?? (10) from gmm.amx
[23:51:57] [debug] #2 000e2d94 in ?? (10, 12, ? from gmm.amx
[23:51:57] [debug] #3 0002b8d0 in public OnPlayerKeyStateChange (10, 12, ? from gmm.amx

exemplu de debug

COMUNITATEA MEA DE RESURSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spacer.png
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
www.codeup.ro / www.codeup.ro/forum

6 answers to this question

Recommended Posts

  • 0
Posted

Depasesti limita unui array, verifica fiecare array din OnPlayerKeyStateChange si vezi unde ai gresit.

  • 0
Posted

in general mai apare acel arry cand valoarea la string sau alt string  depaseste o valoare foarte mare ex  string[5800] ce va de genul dar ar putea fi si din greselile facute de tine.

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted

Redefineste :

#define MAX_PLAYERS 50

Si totusi verifica si 

public OnPlayerKeyStateChange

e posibil sa ai vreo greseala prin array. Nu pot sa-mi dau seama daca nu vad cu ochii mei, dar iti urez succes, si sper sa-ti rezolvi problema. Daca ai nevoie de ajutor nu ezita sa ma contactezi in privat, poate-ti sunt de folos.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.