What am I doing wrong (Command)?
#5

Quote:
Originally Posted by EnzoMetlc
Посмотреть сообщение
pawn Код:
CMD:goldrims(playerid, params[])
{  
    if(IsPlayerInAnyVehicle(playerid))
    {
        AddVehicleComponent (GetPlayerVehicleID (playerid), 1080);
        SendClientMessage (playerid, COLOR_RED, "You have put gold rims on the vehicle!");
    }
    else
    {
        SendClientMessage (playerid, COLOR_RED, "You're not in a vehicle!");
    }
    return 1;
}
I literally just switched to this code, right before you posted this. I found the reason it wasn't working, the similar code I was using, I put a ; after if(IsPlayerInAnyVehicle(playerid)). Thanks for the help though.
Reply


Messages In This Thread
What am I doing wrong (Command)? - by K9IsGodly - 08.01.2014, 04:08
Respuesta: What am I doing wrong (Command)? - by Swedky - 08.01.2014, 04:19
Re: What am I doing wrong (Command)? - by K9IsGodly - 08.01.2014, 04:19
Respuesta: What am I doing wrong (Command)? - by Swedky - 08.01.2014, 04:23
Re: Respuesta: What am I doing wrong (Command)? - by K9IsGodly - 08.01.2014, 04:24

Forum Jump:


Users browsing this thread: 1 Guest(s)