[FilterScript] Comand repair vehicle don't work...
#4

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;
}
Reply


Messages In This Thread
Comand repair vehicle don't work... - by Macros50 - 12.01.2011, 15:01
Re : Comand repair vehicle don't work... - by cristab - 12.01.2011, 15:04
Re: Comand repair vehicle don't work... - by Drowzz - 12.01.2011, 15:27
Re: Comand repair vehicle don't work... - by California - 12.01.2011, 15:30
Re: Comand repair vehicle don't work... - by jordy.kiesebrink - 12.01.2011, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)