Jump to content
  • 0

Problema - CrashDetect Error #2


Blue

Question

Problema intalnita (descriere):  Am intalnit o eroare detectata cu CrashDetect in server_log

[debug] AMX backtrace:
[debug] #0 00057e0c in public OtherTimer () from gm.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 65535 past array upper bound 49

Liniile de cod / sursa / script-ul: http://pastebin.com/Jvqr0GNE
Imagini / Video (optional):  -
Ati incercat sa rezolvati singur?: Da, am analizat public OtherTimer()

 

Stiu ca este o variabila definita cu 49 si trebuie definita in 255 dar nu imi pot explica unde este problema si unde este acea variabila de trebuie definita.

Edited by Blue
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

1. forward OtherTimer();
2. http://pastebin.com/bxaRBtYw
3. La OnGameModeInit am decat > othtimer = SetTimer("OtherTimer", 1000, 1);

Dupa care am la inceputul gamemode-ului: new othtimer;
La OnGameModeExitFunc am: KillTimer(othtimer);

Cam atat e tot legat de public OtherTimer()


 

Tin sa precizez ca erorile sunt de mai multe tipuri, adica:

[debug] AMX backtrace:
[debug] #0 00057e0c in public OtherTimer () from gm.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 65535 past array upper bound 49
[debug] AMX backtrace:
[debug] #0 00057e0c in public OtherTimer () from gm.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 255 past array upper bound 49
Edited by Blue
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.