05.09.2013, 21:23
Try something like this
The problem should be here
Change ui to ii
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;
}
Code:
if(sscanf(params,"ui", color1, color2))