SA-MP Forums Archive
[SOLVED][Error] I've never encounted this error before - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED][Error] I've never encounted this error before (/showthread.php?tid=115647)



[SOLVED][Error] I've never encounted this error before - pagie1111 - 25.12.2009

Код:
F:\SAMP 0.3\pawno\include\SAMsites.inc(90) : error 032: array index out of bounds (variable "Sam")
F:\SAMP 0.3\pawno\include\SAMsites.inc(92) : error 032: array index out of bounds (variable "Sam")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
pawn Код:
90: if(IsPlayerInRangeOfPoint(i,50,Sam[samid][SX],Sam[samid][SY],Sam[samid][SZ]))
91: {
92: Missile[i] = CreateObject(354,Sam[samid][SX],Sam[samid][SY],Sam[samid][SZ],0,0,0);



Re: [Error] I've never encounted this error before - [HiC]TheKiller - 25.12.2009

Show where you define SAM, the array sizes are too small .


Re: [Error] I've never encounted this error before - pagie1111 - 25.12.2009

pawn Код:
enum SamS
{
    Float:SX,
    Float:SY,
    Float:SZ,
    Fired = 0,
};

new Sam[MAX_SAMS][SamS];



Re: [Error] I've never encounted this error before - LarzI - 25.12.2009

What is MAX_SAMS defined as?
Try increasing that value.


Re: [Error] I've never encounted this error before - pagie1111 - 25.12.2009

Even with it defined as 1000000 it still gives same errors


Re: [Error] I've never encounted this error before - M4S7ERMIND - 25.12.2009

change Fired = 0 to Fired


Re: [Error] I've never encounted this error before - pagie1111 - 25.12.2009

I am a dick, lol thanks didn't think of trying that


Re: [SOLVED][Error] I've never encounted this error before - LarzI - 25.12.2009

lol me neither x'd
wtf is wrong with me? lol :P


Re: [SOLVED][Error] I've never encounted this error before - pagie1111 - 25.12.2009

Quote:
Originally Posted by lrZ^ aka LarzI
lol me neither x'd
wtf is wrong with me? lol :P
Well now i am ready to test Live Surface to air missiles that can be placed anywhere you want in the map ^^

hope it works with no bugs