[Ajuda] Nгo consigo resolver isso . - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Nгo consigo resolver isso . (
/showthread.php?tid=421527)
Nгo consigo resolver isso . -
DAKOT4 - 09.03.2013
No Topo :
No OnGameModeInit :
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
No OnPlayerStateChange
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;
}
Ai aparece a mizera desse erro :
pawn Код:
error 032: array index out of bounds (variable "Rs")
WTF !
Alguйm sabe o que ta acontecendo ?
Re: Nгo consigo resolver isso . -
Nill.Oliveira - 09.03.2013
da pra mandar a linha do error ?
Re: Nгo consigo resolver isso . -
smiiir - 09.03.2013
Linha??
Re: Nгo consigo resolver isso . -
DAKOT4 - 09.03.2013
Vei , ta falando que o erro ta numa linha nada a ver com as que estгo as coisas .
da dando erro dentro de um comando , comando de reparar carro '-'
Re: Nгo consigo resolver isso . -
Supera - 09.03.2013
Entгo porque postou esse script que nгo tem nada a ver com o erro ?
Posta a linha onde esta o erro
Re: Nгo consigo resolver isso . -
smiiir - 09.03.2013
manda a variavel Rs