'SERVER: Unknown command' after used DestroyVehicle();
#12

Quote:
Originally Posted by Killerkid.
OnPlayerDeath has 3 parameters, you would have known that if you read the warnings, they're there for a reason and you may need to return OnPlayerDeath.
Not sure if it is bad to destroy a vehicle that doesn't not exist but I couldn't find any function to check.
Try this:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    DestroyVehicle(Veh[playerid]);
    return 1;
}
In PAWN, you can miss of parameters on public functions
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)