Vehicleid
#9

pawn Код:
COMMAND:load(playerid,vehicleid, params[])
{
    new id = GetPlayerVehicleID(playerid);
    /*new
        Float:x,
        Float:y,
        Float:z;*/
// Uncomment if you need it.
    if(GetVehicleModel(id) == 476) // Removed previous conditional statement as there was no need for it.
    {
        // GetPlayerPos(playerid,x,y,z); // Uncomment if you need it.

        VehicleFire[id] = 0;
        AddVehicleMissiles(id,2.0,-1.05,0.0); // Since this checks if VehicleFire = 0, set the value of VehicleFire before you call it.
    }
    return 1;
}
There you go, I've commented what was wrong. Also, I have no idea why you get the player's position because you never use it.
Reply


Messages In This Thread
Vehicleid - by cruising - 14.01.2012, 07:13
Re: Vehicleid - by Spooky - 14.01.2012, 07:35
Re: Vehicleid - by cruising - 14.01.2012, 07:42
Re: Vehicleid - by JamesC - 14.01.2012, 07:45
Re: Vehicleid - by Steven82 - 14.01.2012, 07:48
Re: Vehicleid - by cruising - 14.01.2012, 08:01
Re: Vehicleid - by JamesC - 14.01.2012, 08:15
Re: Vehicleid - by cruising - 14.01.2012, 08:19
Re: Vehicleid - by JamesC - 14.01.2012, 08:27
Re: Vehicleid - by cruising - 14.01.2012, 08:43

Forum Jump:


Users browsing this thread: 2 Guest(s)