SA-MP Forums Archive
Debug error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Debug error (/showthread.php?tid=603223)



Debug error - Hitropl - 20.03.2016

Hello guys!
Help me pls
server report
PHP код:
[13:41:25] [debugRun time error 4"Array index out of bounds"
[13:41:25] [debug]  Accessing element at negative index -146629655
[13:41:25] [debugAMX backtrace:
[
13:41:25] [debug#0 001b4824 in public _capture () at C:\\Revival\gamemodes\new.pwn:18857 
18857 :
PHP код:
GT[IDTerra2] = GZInfo[i][gID]; 
Sorry for my bad english xD


Re: Debug error - YouServ - 20.03.2016

Show enum GZInfo and array GT please.


Re: Debug error - Hitropl - 20.03.2016

Quote:
Originally Posted by YouServ
Посмотреть сообщение
Show enum GZInfo and array GT please.
PHP код:
enum gg
{
    
bool:capture,
    
timecaptsek,
    
timecaptmin,
    
zonename[12],
    
Gang1,
    
Gang2,
    
Frag1,
    
Frag2,
    
IDTerra,
    
IDTerra2
}
enum GzoneInfo
{
    
gID,
    
Float:gCoords[4],
    
gMemberZone
}
new 
GT[gg];
new 
GZInfo[105][GzoneInfo]; 



Re: Debug error - Hitropl - 22.03.2016

Help me pls....