Why doesnt this work?
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/repair", cmdtext))
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
        return 1;
    }
}
I've copied it directly from wiki sa, and even tho the script gives me no errors when i compile, command /repair does not repair my vehicles visable damage.
Help please.
Reply


Messages In This Thread
Why doesnt this work? - by Gemini - 04.04.2011, 14:43
Re: Why doesnt this work? - by Gray - 04.04.2011, 14:51
Re: Why doesnt this work? - by bijoyekuza - 04.04.2011, 14:53
Re: Why doesnt this work? - by Gemini - 04.04.2011, 15:11
Re: Why doesnt this work? - by Gemini - 04.04.2011, 16:43
Re: Why doesnt this work? - by Sascha - 04.04.2011, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)