Car Filterscript Issue, need help immediately.
#1

So basically I'm implementing this car filterscript but I have a problem with creating the vehicles. Everything else is fine.

pawn Код:
// Here I tried to CreateVehicle and load the model and everything else, did not work.
public OnPlayerConnect(playerid)
{
...
    if(dini_Exists(File))
    {
        CreateVehicle(dini_Int(File, "Model"), dini_Float(File, "X"), dini_Float(File, "Y"), dini_Float(File, "Z"), dini_Float(File, "Angle", 0.0, -1, -1, 600000);
        return 1;
    }
    ...
    return 1;
}
pawn Код:
// Here I tried to create the vehicle at a random position then setting the X, Y, Z and Angle of the vehicle, did not work either.
public OnPlayerConnect(playerid)
{
//if dini exists crap...
    SetVehiclePos(dini_Int(File, "Vehicle ID"), dini_Float(File, "X"), dini_Float(File, "Y"), dini_Float(File, "Z"));
    SetVehicleZAngle(dini_Int(File, "Vehicle ID"), dini_Float(File, "Angle"));
    ...
    return 1;
}
I want to get through this issue as soon as possible, so if you could try and help me that would be great.

P.S. This is not the full code, full code is not needed, but if you need it, just reply here.
Reply


Messages In This Thread
Car Filterscript Issue, need help immediately. - by TheHoodRat - 06.12.2010, 02:14
Re: Car Filterscript Issue, need help immediately. - by willsuckformoney - 06.12.2010, 02:34
Re: Car Filterscript Issue, need help immediately. - by TheHoodRat - 06.12.2010, 18:58
Re: Car Filterscript Issue, need help immediately. - by TheHoodRat - 08.12.2010, 15:20
Re: Car Filterscript Issue, need help immediately. - by Nero_3D - 08.12.2010, 15:32
Re: Car Filterscript Issue, need help immediately. - by TheHoodRat - 08.12.2010, 15:35

Forum Jump:


Users browsing this thread: 2 Guest(s)