Jump to content

[REZOLVAT] Probleme crash ondialogrespons


NoManPv
 Share

Recommended Posts

salut am si eu problema de ceva timp pica sv imi da asta si sa stins sv sti de la ce e

 

[22:38:02] [debug] AMX backtrace:
[22:38:02] [debug] #0 00000076 in ?? (115, 116, 114, 117, 46, 46, 0, 0, 0, 0, ... <17 arguments>) from beta.amx
[22:38:02] [debug] #1 00000076 in public OnDialogResponse () from beta.amx
Link to comment
Share on other sites

Si daca fac updates la crashdedect ala ? ?

N-are nicio treaba.

 

Daca stii de la care dialog pica server-ul, prezinta-ne codul aici.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

a dat asta

[22:42:15] [debug] Run time error 4: "Array index out of bounds"

[22:42:15] [debug]  Accessing element at index 65535 past array upper bound 49
[22:42:15] [debug] AMX backtrace:
[22:42:15] [debug] #0 002df160 in public Timers () from beta.amx
 
si dupa
 
[23:11:39] [debug] Run time error 4: "Array index out of bounds"
[23:11:39] [debug]  Accessing element at negative index -146676425
[23:11:39] [debug] AMX backtrace:
[23:11:39] [debug] #0 001634c0 in public OnDialogResponse () from beta.amx
Link to comment
Share on other sites

Intr-un dialog ai creat un loop care iese din limitele unui vector. Sa iti dau un exemplu:

 

Avem un vector "new v[100];", el avand valori de la v[0] la v[99].

for(new i = 0; i <= sizeof(vector); i++) {
vector[i] .... 
}

Daca aplici acest cod, la ultima lui verificare vei incerca sa accesezi v[100] (deoarece vectorul are 100 de termeni, 100 rezultand din sizeof(vector)), deci vei iesi din limitele acestuia, rezultand eroarea "out of bounds" in consola.

Edited by iMatt

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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