12.01.2011, 15:30
Indent your code. You can read it better.
pawn Код:
if(!strcmp(cmdtext, "/fix", true))
{
if(IsPlayerInAnyVehicle(playerid) || GetPlayerState(playerid, PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
RepairVehicle(vehicleid);
SendClientMessage(playerid, COLOR_GREEN, "You have fixed your vehicle!");
}
else
{
SendClientMessage(playerid, COLOR_BLUE, "You are not in a vehicle.");
}
return 1;
}