AddStaicVehicleEx doesnt enter cars
#1

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);
Reply
#2

i dont think the problem is in here, you anywhere else use SetVehicleParams?
Reply
#3

Check your OnPlayerEnterVehicle callback. Is anything strange there?
Reply
#4

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);
            }
        }
    }
}
Reply
#5

yes that lockcar must be on a timer right?
Reply
#6

I don't know, this isnt my script and I'm kinda new so?
Reply
#7

search for SetTimer("LockCar" in your script.
Reply
#8

Found nothing, but something similar: cartimer = SetTimer("CarCheck", 30000, 1);
Reply
#9

can you post your script on pastebin, so i can take a look?
Reply
#10

Can't it's too big! I think it's a GF edit, please help me anyway hehe
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)