Topicul Original.
Exemplu:
[font=courier]#include <a_samp>
main() {
function1();
}
function1() {
function2();
}
function2() {
new buf[10];
fread(File:123, buf);
}[/font]
Cand va ajunge la "function2" serverul se va inchide automat iar daca folosesti windows iti va da un cod necitabil in crashinfo.txt.
Cu crashdetect vei vedea urmatorul lucru in serverlog:
Code: Select all
[12:23:12] Crash caused by fread at address 00000090 (gamemodes\test.amx)Ce este mult mai interesant de vazut este modul in care acesta functioneaza...doar compileaza scriptul acela folosind informatii simbolice si vei gasi asta:
Code: Select all
[12:20:55] Crash caused by fread on line 13 in test.pwn (gamemodes\test.amx)
[12:20:55] Stack trace of gamemodes\test.amx (most recent call first):
[12:20:55] function2 on line 8 in test.pwn
[12:20:55] function1 on line 4 in test.pwn
[12:20:55] main (entry point)Download
- [li]Source + .dll + .so[/li]
[li]Latest source[/li]




