Color HELP
#1

Hello scripters. I get some problems with transfering this command from zcmd to strcmp.

Quote:

CMD:carcolour(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "ERROR: You are not driving a vehicle.");
new color1, color2;
new vehicleid = GetPlayerVehicleID(playerid);
if(sscanf(params, "hh", color1, color2)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /carcolour [colour1] [colour2]");
ChangeVehicleColor(vehicleid, color1, color2);
return 1;
}

I will be glad if anyone try.
Reply


Messages In This Thread
Color HELP - by necrobg3 - 27.02.2013, 20:05
Re: Color HELP - by Vince - 27.02.2013, 20:07
Re: Color HELP - by necrobg3 - 27.02.2013, 20:20
Re: Color HELP - by necrobg3 - 28.02.2013, 17:44
Re: Color HELP - by Luis- - 28.02.2013, 18:37
Re: Color HELP - by necrobg3 - 28.02.2013, 20:51
Re: Color HELP - by Denying - 01.03.2013, 14:34
Re: Color HELP - by Vince - 01.03.2013, 14:37
Re: Color HELP - by Denying - 01.03.2013, 14:38
Re: Color HELP - by Bakr - 01.03.2013, 16:11

Forum Jump:


Users browsing this thread: 2 Guest(s)