DestroyVehilcle
#1

why this doesn't destroy the vehicle ?

pawn Код:
CMD:des(playerid, params[])
{
    new currentveh = GetPlayerVehicleID(playerid);
    if(currentveh == 402) //bufallo
    {
        DestroyVehicle(currentveh);
        GivePlayerMoney(playerid,30000);
    }
    return 1;
}
Reply
#2

That's destroying the car ID of 402, not the car model ID of 402.

pawn Код:
CMD:des(playerid, params[])
{
    new currentveh = GetPlayerVehicleID(playerid);
    new vehicle = GetVehicleModel(currentveh);
    if(vehicle == 402) //bufallo
    {
        DestroyVehicle(currentveh);
        GivePlayerMoney(playerid,30000);
    }
    return 1;
}
Reply
#3

thankyou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)