Why this script doesnt work ?
#2

Try something like this

pawn Code:
CMD:vcolor(playerid,params[])
{
    new color[2];
    if(PlayerInfo[playerid][pAdmin] < 3)
    {
        if(sscanf(params,"ii",color[0],color[1])) return SendClientMessage(playerid,0xFFFFFFFF,"Use: /vcolor [color1] [color2]");
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You need to be in vehicle to use this command!");
        ChangeVehicleColor(GetPlayerVehicleID(playerid),color[0],color[1]);

    }
    return 1;
}
The problem should be here
Code:
if(sscanf(params,"ui", color1, color2))
Change ui to ii
Reply


Messages In This Thread
Why this script doesnt work ? - by bustern - 05.09.2013, 21:12
Re: Why this script doesnt work ? - by Pawnie - 05.09.2013, 21:23
Re: Why this script doesnt work ? - by bustern - 05.09.2013, 21:39
Re: Why this script doesnt work ? - by CaveDweller - 05.09.2013, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)