command isn't working...
#3

So I have edited the command like you said.

The health is still the same after I edit the health number see screenshots:

http://imgur.com/PAJhotr
http://imgur.com/mT2ZqUP

The command:

PHP код:
CMD:setvehiclehealth(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] < 3)
    {
        
SendClientMessage(playeridCOLOR_GREY"You're not allowed to use this command.");
    }
    if(
AdminDuty[playerid] != && PlayerInfo[playerid][pAdmin] < 6)
    {
        
SendClientMessage(playerid,COLOR_WHITE"You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
    }
    new 
Float:VehicleHealthstring[125];
    new 
vehicleid GetPlayerVehicleID(playerid);
    if(
sscanf(params"fd"Float:VehicleHealthvehicleid)) return SendClientMessage(playeridCOLOR_GREEN"/setvehiclehealth [Health] [VehicleID]");
    
format(stringsizeof(string),"You have set your vehicle health to %f",Float:VehicleHealth);
    
SendClientMessage(playeridCOLOR_GRAD1string);
    
SetVehicleHealth(vehicleidFloat:VehicleHealth);
    return 
1;

Reply


Messages In This Thread
command isn't working... - by IndependentGaming - 07.10.2016, 20:30
Re: command isn't working... - by MEW273 - 07.10.2016, 20:57
Re: command isn't working... - by IndependentGaming - 08.10.2016, 12:45
Re: command isn't working... - by MEW273 - 08.10.2016, 13:25
Re: command isn't working... - by Threshold - 08.10.2016, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)