C:\Users\Pavilion\Desktop\ILV Server\pawno\ILV.pwn(258) : error 032: array index out of bounds (variable "ILVBlu") C:\Users\Pavilion\Desktop\ILV Server\pawno\ILV.pwn(282) : error 032: array index out of bounds (variable "ILVBlue") C:\Users\Pavilion\Desktop\ILV Server\pawno\ILV.pwn(303) : error 032: array index out of bounds (variable "ILVBlue") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
new Text:ILVBlue[6];
ILVBlue[1] = TextDrawCreate(494.000000, 430.000000, "~b~]~b~~h~]~b~~h~~h~]~b~~h~~h~~h~]~b~~h~~h~~h~~h~]]]]]]]~b~~h~~h~~h~]~b~~h~~h~]~b~~h~]~b~]"); TextDrawBackgroundColor(ILVBlue[1], 255); TextDrawFont(ILVBlue[1], 0); TextDrawLetterSize(ILVBlue[1], 0.270000, 1.000000); TextDrawColor(ILVBlue[1], -1); TextDrawSetOutline(ILVBlue[1], 0); TextDrawSetProportional(ILVBlue[1], 1); TextDrawSetShadow(ILVBlue[1], 1); ILVBlue[2] = TextDrawCreate(494.000000, 419.000000, "--------------------"); TextDrawBackgroundColor(ILVBlue[2], 255); TextDrawFont(ILVBlue[2], 0); TextDrawLetterSize(ILVBlue[2], 0.270000, 1.000000); TextDrawColor(ILVBlue[2], -1); TextDrawSetOutline(ILVBlue[2], 0); TextDrawSetProportional(ILVBlue[2], 1); TextDrawSetShadow(ILVBlue[2], 1); ILVBlue[3] = TextDrawCreate(502.000000, 338.000000, "~b~I~h~t~h~~h~a~b~l~h~i~h~~h~a~b~n"); TextDrawBackgroundColor(ILVBlue[3], 255); TextDrawFont(ILVBlue[3], 0); TextDrawLetterSize(ILVBlue[3], 1.220000, 2.700000); TextDrawColor(ILVBlue[3], -1); TextDrawSetOutline(ILVBlue[3], 0); TextDrawSetProportional(ILVBlue[3], 1); TextDrawSetShadow(ILVBlue[3], 1); ILVBlue[4] = TextDrawCreate(522.000000, 365.000000, "~b~L~h~~h~a~b~s"); TextDrawBackgroundColor(ILVBlue[4], 255); TextDrawFont(ILVBlue[4], 0); TextDrawLetterSize(ILVBlue[4], 1.160000, 2.700000); TextDrawColor(ILVBlue[4], -1); TextDrawSetOutline(ILVBlue[4], 0); TextDrawSetProportional(ILVBlue[4], 1); TextDrawSetShadow(ILVBlue[4], 1); ILVBlue[5] = TextDrawCreate(493.000000, 391.000000, "~b~V~h~e~h~~h~n~b~t~h~u~h~~h~r~b~a~h~s"); TextDrawBackgroundColor(ILVBlue[5], 255); TextDrawFont(ILVBlue[5], 0); TextDrawLetterSize(ILVBlue[5], 1.160000, 2.700000); TextDrawColor(ILVBlue[5], -1); TextDrawSetOutline(ILVBlue[5], 0); TextDrawSetProportional(ILVBlue[5], 1); TextDrawSetShadow(ILVBlue[5], 1);
(Line: 258) TextDrawHideForPlayer(playerid, ILVBlue[6]);
(Line: 282) TextDrawHideForPlayer(playerid, ILVBlue[6]);
(Line: 303) TextDrawShowForPlayer(playerid, ILVBlue[6]);
new Text:ILVBlue[6];
(Line: 258) TextDrawHideForPlayer(playerid, ILVBlue[6]);
You defined 6 cells, but you are using 5.
Aswell start with 0, not 1. |
new something:var[5];
//you can use:
/* start */
var[0] = 5448; //ONE
var[1] = 1337; //TWO
var[2] = 1545; //THREE
var[3] = 8741; //FOUR
var[4] = 6544; //FIVE, there you have a total of 5 values. now if you add var[5], it goes out of bounds (6)..
/* end */