What did I do wrong?
#4

PHP код:
CMD:carcolor(playeridparams[])
{
    if(
GetPlayerState(playerid) != 2) return SendClientMessage(playerid0xFF0000FF"You are not driving a vehicle.");
    new 
color[2];
    if(
sscanf(params"iI(-1)"color[0], color[1]))
    {
        return 
SendClientMessage(playerid0xFF0000FF"USAGE: /carcolor <color1> <color2>");
    }
    if(
color[1] == -1color[1] = color[0]; // If color2 was left out, set it the same as color 1
    
new szSuccess[44];
    
format(szSuccesssizeof(szSuccess), "Vehicle colors changed to: {FFFFFF}%i and %i."color[0], color[1]);
    
SendClientMessage(playerid0x00FF00FFszSuccess);
    
ChangeVehicleColor(GetPlayerVehicleID(playerid), color[0], color[1]);
    return 
1;

try ZCMD one.
Reply


Messages In This Thread
What did I do wrong? - by UnholyBeast - 18.02.2017, 08:02
Re: What did I do wrong? - by JesterlJoker - 18.02.2017, 08:17
Re: What did I do wrong? - by UnholyBeast - 18.02.2017, 18:14
Re: What did I do wrong? - by RyderX - 18.02.2017, 18:18
Re: What did I do wrong? - by UnholyBeast - 18.02.2017, 19:02
Re: What did I do wrong? - by Sew_Sumi - 18.02.2017, 21:02
Re: What did I do wrong? - by UnholyBeast - 18.02.2017, 21:41
Re: What did I do wrong? - by Sew_Sumi - 18.02.2017, 21:44
Re: What did I do wrong? - by UnholyBeast - 18.02.2017, 21:49
Re: What did I do wrong? - by Sew_Sumi - 18.02.2017, 23:01

Forum Jump:


Users browsing this thread: 2 Guest(s)