/vcolor usage
#1

I have here vcolor command. Is it possible not to fill the second color or the /vcolor [0-255] [0-255]?
I mean, if playayer use /vcolor 1 the color of the vehicle changes without filling the other one.


Код:
COMMAND:vcolor(playerid, params[])
{
    new color1,color2;
    if(sscanf(params, "ii", color1, color2)) return SendClientMessage(playerid, COLOR_RED, "Usage: /vcolor [0-255] [0-255]");
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle.");
    ChangeVehicleColor(GetPlayerVehicleID(playerid),color1,color2);
    GameTextForPlayer(playerid,"~y~Vehicle Color Changed",2000,3);
    return 1;
}
Reply
#2

erm i guess it should be like that
pawn Код:
if(sscanf(params,"i,"color1)) return SendClientMessage(playerid,COLOR_RED,"Usage /vcolor [0-255]
Maybe this should work
Reply
#3

Quote:
Originally Posted by CoDeZ
Посмотреть сообщение
erm i guess it should be like that
pawn Код:
if(sscanf(params,"i,"color1)) return SendClientMessage(playerid,COLOR_RED,"Usage /vcolor [0-255]
Maybe this should work
No works. Something like that but without removing the color2 or the second color.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)