AddStaicVehicleEx doesnt enter cars -
hanzen - 21.05.2009
hELLO!
I have some problems during the function AddStaticVehicleEx(). The car shows up but I can't enter, if I use AddStaticVehicle() compiler just crashes.
Anyway this is the code:
pawn Код:
AddStaticVehicleEx(561,981.9931,1110.7511,10.4814,268.2725,0,0,60000); // SS
AddStaticVehicleEx(561,982.0217,1106.1815,10.4843,271.5531,0,0,60000);
AddStaticVehicleEx(561,982.1329,1101.9805,10.4844,269.6603,0,0,60000);
AddStaticVehicleEx(489,997.9946,1071.4702,10.7846,3.4762,0,0,60000);
AddStaticVehicleEx(489,993.3839,1071.6479,10.7836,0.0593,0,0,60000);
AddStaticVehicleEx(489,988.6883,1071.9854,10.7823,359.1808,0,0,60000);
AddStaticVehicleEx(409,981.4888,1087.5399,10.7062,272.7205,0,0,60000);
AddStaticVehicleEx(409,981.3062,1093.0339,10.7059,274.8417,0,0,60000);
AddStaticVehicleEx(587,982.2175,1127.6875,10.5471,269.3565,0,0,60000);
AddStaticVehicleEx(587,982.3071,1124.0371,10.5453,270.0101,0,0,60000);
AddStaticVehicleEx(587,982.0880,1120.2244,10.5482,271.8205,0,0,60000);
AddStaticVehicleEx(457,1014.9517,1158.5555,10.3537,181.6995,0,0,60000);
AddStaticVehicleEx(487,1086.4785,1074.0582,11.0134,240.2857,0,0,60000);
Re: AddStaicVehicleEx doesnt enter cars -
Rks25 - 21.05.2009
i dont think the problem is in here, you anywhere else use SetVehicleParams?
Re: AddStaicVehicleEx doesnt enter cars -
Correlli - 21.05.2009
Check your OnPlayerEnterVehicle callback. Is anything strange there?
Re: AddStaicVehicleEx doesnt enter cars -
hanzen - 21.05.2009
It may have something to do with this?
pawn Код:
public LockCar(carid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(carid,i,0,1);
}
}
}
public UnLockCar(carid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(!IsAPlane(carid))
{
SetVehicleParamsForPlayer(carid,i,0,0);
}
}
}
}
Re: AddStaicVehicleEx doesnt enter cars -
Rks25 - 21.05.2009
yes that lockcar must be on a timer right?
Re: AddStaicVehicleEx doesnt enter cars -
hanzen - 21.05.2009
I don't know, this isnt my script and I'm kinda new so?
Re: AddStaicVehicleEx doesnt enter cars -
Rks25 - 21.05.2009
search for SetTimer("LockCar" in your script.
Re: AddStaicVehicleEx doesnt enter cars -
hanzen - 21.05.2009
Found nothing, but something similar:
cartimer = SetTimer("CarCheck", 30000, 1);
Re: AddStaicVehicleEx doesnt enter cars -
Rks25 - 21.05.2009
can you post your script on pastebin, so i can take a look?
Re: AddStaicVehicleEx doesnt enter cars -
hanzen - 21.05.2009
Can't it's too big! I think it's a GF edit, please help me anyway hehe