Jump to content
  • 0

debug


buNNy

Question

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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.