HELP!?!? /fix PLEASE?
#1

Hello, i was wondering if anyone knows how to fix this, i made this up of the top of my head... i get no errors!

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/fix", true) == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREEN, "Not in a vehicle!");
        new vName = GetPlayerVehicleID(playerid);
        new string[128];
        RepairVehicle(GetPlayerVehicleID(vName));
        format(string, sizeof(string), "%s Has been fixed!", vName);
        SendClientMessage(playerid, COLOR_GREEN, string);
        return 1;
    }
    return 0;
}
For example of what supposed to happed... /fix Sends a message "Your *Elegy* has been successfully repaired!"
Reply


Messages In This Thread
HELP!?!? /fix PLEASE? - by BigAl - 25.11.2010, 21:54
Re: HELP!?!? /fix PLEASE? - by Calgon - 25.11.2010, 22:06
Re: HELP!?!? /fix PLEASE? - by BigAl - 25.11.2010, 22:14
Re: HELP!?!? /fix PLEASE? - by scripter1 - 26.11.2010, 00:25
Re: HELP!?!? /fix PLEASE? - by Austin - 26.11.2010, 00:27
Re: HELP!?!? /fix PLEASE? - by scripter1 - 26.11.2010, 00:28
Re: HELP!?!? /fix PLEASE? - by Austin - 26.11.2010, 00:31
Re: HELP!?!? /fix PLEASE? - by scripter1 - 26.11.2010, 00:33
Re: HELP!?!? /fix PLEASE? - by Austin - 26.11.2010, 00:36
Re: HELP!?!? /fix PLEASE? - by scripter1 - 26.11.2010, 00:41

Forum Jump:


Users browsing this thread: 1 Guest(s)