09.03.2013, 20:05
No Topo :
No OnGameModeInit :
No OnPlayerStateChange
Ai aparece a mizera desse erro :
WTF !
Alguйm sabe o que ta acontecendo ?
pawn Код:
new Mecanicos_Cars [7];
pawn Код:
Mecanicos_Cars [0] = AddStaticVehicle(525,954.3412,1707.5149,8.5261,268.9532,1,6); // HQ Mecвnicos
Mecanicos_Cars [1] = AddStaticVehicle(525,966.1174,1707.5100,8.5303,268.5132,1,6); // HQ Mecвnicos
Mecanicos_Cars [2] = AddStaticVehicle(552,984.5161,1746.8302,8.3467,89.9894,1,6); // HQ Mecвnicos
Mecanicos_Cars [3] = AddStaticVehicle(552,984.4587,1740.7358,8.3527,90.1180,1,6); // HQ Mecвnicos
Mecanicos_Cars [4] = AddStaticVehicle(552,954.9221,1758.9803,8.3508,269.5653,1,6); // HQ Mecвnicos
Mecanicos_Cars [5] = AddStaticVehicle(525,984.3405,1720.1436,8.5357,89.6123,1,6); // HQ Mecвnicos
Mecanicos_Cars [6] = AddStaticVehicle(552,973.0637,1765.4324,8.3490,180.9564,1,6); // HQ Mecвnicos
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new VehID = GetPlayerVehicleID(playerid);
if (newstate == PLAYER_STATE_DRIVER)
{
for (new vP = 0; vP < sizeof(Mecanicos_Cars); vP++)
{
if (VehID == Mecanicos_Cars[vP] && pEmprego[playerid][Mecanico] != 1)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Este Carro Nгo Pertence a Sua {09D6E1}Organizaзгo.");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
pawn Код:
error 032: array index out of bounds (variable "Rs")
Alguйm sabe o que ta acontecendo ?