05.09.2011, 10:58
that we do wrong?
a top of the script..
OnGameModeInit
OnPlayerConnect
OnPlayerDisconnect
OnPlayerSpawn
Код:
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]);