please help me what is this?!?!?!
#1

I WANTED TO MAKE ADMIN CARS THIS IS WHAT HAPPEND



errors:
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(215) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(216) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(217) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(21 : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(219) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(220) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(221) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(222) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(223) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(224) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(225) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(226) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(227) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(22 : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(229) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(23 : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(239) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(240) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(241) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(241) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(242) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(242) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(243) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(243) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(244) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(244) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(245) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(245) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(246) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(246) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(247) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(247) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(24 : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(24 : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(249) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(249) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(250) : error 032: array index out of bounds (variable "AdminCar")
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(250) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(251) : error 032: array index out of bounds (variable "AdminCar")

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.





script:

public OnGameModeInit()
{
AdminCar[0] = AddStaticVehicleEx(451,1084.2000000,-1226.5000000,15.6000000,180.0000000,0,0,999); //Turismo
AdminCar[1] = AddStaticVehicleEx(415,1093.5000000,-1226.3000000,15.7000000,180.0000000,0,0,999); //Cheetah
AdminCar[2] = AddStaticVehicleEx(411,1098.5000000,-1226.2000000,15.6000000,180.0000000,0,0,999); //Infernus
AdminCar[3] = AddStaticVehicleEx(411,1103.7000000,-1226.2000000,15.6000000,180.0000000,0,0,999); //Infernus
AdminCar[4] = AddStaticVehicleEx(495,1108.9000000,-1226.0000000,16.4000000,180.0000000,0,0,999); //Sandking
AdminCar[5] = AddStaticVehicleEx(522,1090.6000000,-1226.3000000,15.5000000,180.0000000,0,0,999); //NRG-500
AdminCar[6] = AddStaticVehicleEx(522,1087.6000000,-1225.5000000,15.5000000,180.0000000,0,0,999); //NRG-500
AdminCar[7] = AddStaticVehicleEx(522,1120.3000000,-1249.0000000,15.7000000,360.0000000,0,0,999); //NRG-500
AdminCar[8] = AddStaticVehicleEx(481,1083.9000000,-1219.6000000,17.4000000,270.0000000,0,0,999); //BMX
AdminCar[9] = AddStaticVehicleEx(560,1110.2000000,-1249.5000000,15.6000000,0.0000000,0,0,999); //Sultan
AdminCar[10] = AddStaticVehicleEx(560,1115.2000000,-1249.7000000,15.6000000,0.0000000,0,0,999); //Sultan
AdminCar[11] = AddStaticVehicleEx(560,1105.2000000,-1249.5000000,15.6000000,0.0000000,0,0,999); //Sultan
AdminCar[12] = AddStaticVehicleEx(560,1099.8000000,-1249.5000000,15.6000000,0.0000000,0,0,999); //Sultan
AdminCar[13] = AddStaticVehicleEx(596,1094.0000000,-1249.2000000,15.6000000,0.0000000,0,0,999); //Police Car (LSPD)
AdminCar[14] = AddStaticVehicleEx(567,1087.3000000,-1249.1000000,15.8000000,0.0000000,0,0,999); //Savanna
AdminCar[15] = AddStaticVehicleEx(482,1086.8000000,-1194.2000000,18.4000000,180.0000000,0,0,999); //Burrito
AdminCar[16] = AddStaticVehicleEx(487,1132.7000000,-1244.0000000,25.6000000,90.0000000,0,0,999); //Maverick
AdminCar[17] = AddStaticVehicleEx(487,1132.3000000,-1223.0000000,25.6000000,90.0000000,0,0,999); //Maverick
CreateObject(2933,1118.9000000,-1160.2000000,24.3000000,0.0000000,0.0000000,0.0000 000); //object(pol_comp_gate) (2)
CreateObject(2933,1118.6000000,-1160.2000000,27.7000000,0.0000000,0.0000000,0.0000 000); //object(pol_comp_gate) (3)
CreateObject(3036,1138.1000000,-1204.5000000,19.6000000,0.0000000,0.0000000,40.000 0000); //object(ct_gatexr) (1)
CreateObject(8614,1123.1000000,-1254.5000000,22.8000000,0.0000000,0.0000000,270.00 00000); //object(vgssstairs01_lvs) (1)
CreateObject(3928,1132.0000000,-1223.0000000,24.3000000,0.0000000,0.0000000,0.0000 000); //object(helipad) (1)
CreateObject(3928,1131.0000000,-1263.6000000,20.5000000,0.0000000,0.0000000,0.0000 000); //object(helipad) (2)
CreateObject(3928,1132.5000000,-1244.1000000,24.3000000,0.0000000,0.0000000,0.0000 000); //object(helipad) (3)

vehicle3Dtext[AdminCar[0]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[1]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[2]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[3]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[4]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[5]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[6]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[7]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[8]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[9]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[10]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[11]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[12]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[13]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[14]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[15]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[16]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
vehicle3Dtext[AdminCar[17]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);

Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[0]],AdminCar[0], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[1]],AdminCar[1], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[2]],AdminCar[2], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[3]],AdminCar[3], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[4]],AdminCar[4], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[5]],AdminCar[5], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[6]],AdminCar[6], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[7]],AdminCar[7], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[8]],AdminCar[8], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[9]],AdminCar[9], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[10]],AdminCar[10], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[11]],AdminCar[11], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[12]],AdminCar[12], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[13]],AdminCar[13], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[14]],AdminCar[14], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[15]],AdminCar[15], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[16]],AdminCar[16], 0.0, 0.0, 0.7);
Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[17]],AdminCar[17], 0.0, 0.0, 0.7);
return 1;
}
//+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-ADMIN CARS+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
public OnGameModeExit()
{
Delete3DTextLabel(vehicle3Dtext[AdminCar[0]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[1]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[2]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[3]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[4]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[5]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[6]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[7]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[8]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[9]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[10]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[11]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[12]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[13]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[14]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[15]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[16]]);
Delete3DTextLabel(vehicle3Dtext[AdminCar[17]]);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassanger)
{
for(new i = 0; i < sizeof(AdminCar); i ++)
{
if(vehicleid == AdminCar[i] && !IsPlayerAdmin(playerid))
{
ClearAnimations(playerid);
GameTextForPlayer(playerid,"~r~ ADMINS ONLY",1250,4);
}
}
return 1;
Reply
#2

1. Take a look at what the errors say
2. Think about what the errors mean
3. Solve the errors
4. Enjoy

PS: When you post code please use one of these tags: [code][pawn][html][php]
PS2:
"Array out of bounds" - The array has X slots but you used more than X slots
"Tag mismatch" - You forgot to add a tag. (maybe the 3dText: tag?)

PS3: Read this: https://sampwiki.blast.hk/wiki/Errors_List and also try to read the Pawn Language Documentation
Reply
#3

You ddint help very much
Reply
#4

Quote:
Originally Posted by n00blek
Посмотреть сообщение
You ddint help very much
He meant that maybe you have a tag something like new AdminCar[slots defined]; and you are creating more than the specified. try to make it new AdminCar[20];
Reply
#5

Ok now i see thanks both for help
AMINS LOCK TOPIC
Reply
#6

This thread gave me cancer.
Reply
#7

Quote:
Originally Posted by Luke_James
Посмотреть сообщение
This thread gave me cancer.
Reply
#8

Quote:
Originally Posted by Luke_James
Посмотреть сообщение
This thread gave me cancer.
what stage of your cancer
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)