Help


Započeo Michaell Cassano, Maj 30, 2019, 16:16:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Kad pokrenem gamemode ovo izadje, izvorni Athlone, naravno ovo se pojavi ali mod se ucita i radi na kucnom serveru eh sad ne znam kako da fix ovo ? neko help?
Deo skripte: [ pawn ] Imate dole
Problem(error/warning): [debug] Run time error 4: "Array index out of bounds" [debug] Attempted to read/write array element at index 100 in array of size 100 [debug] AMX backtrace: [debug] #0 0021248c in public LoadAports () at C:\Users\Hp\Desktop\Server\gamemodes\gamemode.pwn:21213 [debug] #1 002dc60c in LoadScriptfiles () at C:\Users\Hp\Desktop\Server\gamemodes\gamemode.pwn:30582 [debug] #2 002e6d64 in public CB_OnGameModeInit () at C:\Users\Hp\Desktop\Server\gamemodes\gamemode.pwn:31134 [debug] #3 00021c24 in public zcmd_OnGameModeInit () at C:\Users\Hp\Desktop\Compiler\include\newsamp.inc:444 [debug] #4 native CallLocalFunction () from samp-server.exe [debug] #5 0001e850 in ?? () at C:\Users\Hp\Desktop\Compiler\include\zcmd.inc:68 [debug] #6 0000e3e8 in public ScriptInit_OnGameModeInit () at C:\Users\Hp\Desktop\Compiler\include\YSI\y_hooks/impl.inc:498 [debug] #7 00007514 in public SSCANF_OnGameModeInit () at C:\Users\Hp\Desktop\Compiler\include\YSI\internal\..\y_scriptinit.inc:171 [debug] #8 00000bc0 in public OnGameModeInit () at C:\Users\Hp\Desktop\Compiler\include\sscanf2.inc:205 [ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): Imate gore..
Slika/video ingame problema(obavezno ako je ingame problem): Nepotrebno, imate gore

Ajd me zajebi crashdetekta , napisi mi ukratko sta je problem pls...




Give Honor To The One Who Deserve It





Citat: Mister Naithan poslato Maj 31, 2019, 22:22:19 POSLE PODNE
Ajd me zajebi crashdetekta , napisi mi ukratko sta je problem pls...
To i jeste problem, zato i postoji crashdetect da nailazi na probleme..
Array ti je prešao limit.

Sve ti pise u logu

Run time error 4: "Array index out of bounds"  // 
[debug] Attempted to read/write array element at index 100 in array of size 100
[debug] AMX backtrace: 
[debug] #0 0021248c in public LoadAports () at C:\Users\Hp\Desktop\Server\gamemodes\gamemode.pwn:21213 // 21212 Linija -- ovde ti je array limit presao
[debug] #1 002dc60c in LoadScriptfiles () at C:\Users\Hp\Desktop\Server\gamemodes\gamemode.pwn:30582 // 30582 Linija
[debug] #2 002e6d64 in public CB_OnGameModeInit () at C:\Users\Hp\Desktop\Server\gamemodes\gamemode.pwn:31134 // 31134 Linija

Moja preporuka je da koristiš PawnPlus plugin, ne postoji bolja stvar za dinamično alociranje memorije i kreiranja mapa, stringova, taskova i sl