[SOLVED][Error] I've never encounted this error before
#1

Код:
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);
Reply
#2

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

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

new Sam[MAX_SAMS][SamS];
Reply
#4

What is MAX_SAMS defined as?
Try increasing that value.
Reply
#5

Even with it defined as 1000000 it still gives same errors
Reply
#6

change Fired = 0 to Fired
Reply
#7

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)