C:\Users\ЈLISEU\Desktop\Teste\Gamemodes\BVR.pwn(7967) : error 032: array index out of bounds (variable "CARROSMP")
C:\Users\ЈLISEU\Desktop\Teste\Gamemodes\BVR.pwn(29678) : error 032: array index out of bounds (variable "CARROSMP")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
new CARROSMP[3]; // Topo da GM
CARROSMP[0] = AddStaticVehicle(442,948.3264,-1356.5320,13.1437,179.8164,1,1); // Veiculo MP
CARROSMP[1] = AddStaticVehicle(442,953.8585,-1356.0969,13.1447,181.3530,1,1); // Veiculo MP
CARROSMP[2] = AddStaticVehicle(442,962.6116,-1356.3016,13.1469,177.7073,0,0); // Veiculo MP
(7967) CARROSMP[3] = AddStaticVehicle(442,967.6824,-1356.2184,13.1501,180.7744,0,0); // Veiculo MP
/* Aqui й a ultima parte, a que se nгo me engano ordena o carro e a que profissгo ele pertence */
(29678) if(vid == CARROSMP[0] || vid == CARROSMP[1] || vid == CARROSMP[2] || vid == CARROSMP[3])
{
if(PlayerInfo[playerid][pProfissao] == MotoristaP) {
}else{
SendClientMessage(playerid, Vermelho, " | INFO | Este veiculo й reservador para os Motoristas Particular.");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
new CARROSMP[4];
CARROSMP[0] = AddStaticVehicle(442,948.3264,-1356.5320,13.1437,179.8164,1,1);
CARROSMP[1] = AddStaticVehicle(442,953.8585,-1356.0969,13.1447,181.3530,1,1);
CARROSMP[2] = AddStaticVehicle(442,962.6116,-1356.3016,13.1469,177.7073,0,0);
CARROSMP[3] = AddStaticVehicle(442,967.6824,-1356.2184,13.1501,180.7744,0,0);
if(vid == CARROSMP[0] || vid == CARROSMP[1] || vid == CARROSMP[2] || vid == CARROSMP[3])
{
if(PlayerInfo[playerid][pProfissao] == MotoristaP) {
}else{
SendClientMessage(playerid, Vermelho, " | INFO | Este veiculo й reservador para os Motoristas Particular.");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
new CARROSMP[3]; // 3 Matrizes criadas.
CARROSMP[0] = AddStaticVehicle(442... //Veнculo 1
CARROSMP[1] = AddStaticVehicle(442... //Veнculo 2
CARROSMP[2] = AddStaticVehicle(442... // Veнculo 3
CARROSMP[3] = AddStaticVehicle(442... // Veнculo 4
new CARROSMP[4]; // 4 Veнculos utilizados.
|
Jб aproveitando, vocкs poderia me dizer como retiro o chat global ? e deixo o chat perto ??
|