carcolor script problem
#17

Why don't you use ZCMD + SSCANF? is faster
Код:
CMD:carcolor( playerid, params[ ] )
{
	new Color1,Color2;
	if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, red, "You Must Be In A Vehicle!");

	if(sscanf(params,"dd",Color1,Color2)) return SendClientMessage(playerid, red,"USAGE: /Carcolor < Color 1 > < Color 2 >");
	return ChangeVehicleColor(GetPlayerVehicleID(playerid) ,Color1,Color2);
}
did not test, but im sure it works.. You will need ZCMD and SSCANF

notice how simple is to script with those two
Reply


Messages In This Thread
carcolor script problem - by Freght - 07.07.2010, 11:48
Re: carcolor script problem - by CAR - 07.07.2010, 11:51
Re: carcolor script problem - by DeathOnaStick - 07.07.2010, 11:52
Re: carcolor script problem - by Freght - 07.07.2010, 12:11
Re: carcolor script problem - by CAR - 07.07.2010, 12:13
Re: carcolor script problem - by Freght - 07.07.2010, 12:21
Re: carcolor script problem - by Kotomi - 07.07.2010, 12:23
Re: carcolor script problem - by CAR - 07.07.2010, 12:35
Re: carcolor script problem - by Freght - 07.07.2010, 12:36
Re: carcolor script problem - by Hiddos - 07.07.2010, 12:43
Re: carcolor script problem - by Freght - 07.07.2010, 12:55
Re: carcolor script problem - by Hiddos - 07.07.2010, 12:57
Re: carcolor script problem - by Freght - 07.07.2010, 13:00
Re: carcolor script problem - by Freght - 07.07.2010, 13:02
Re: carcolor script problem - by The_Prince - 07.07.2010, 13:02
Re: carcolor script problem - by Hiddos - 07.07.2010, 13:03
Re: carcolor script problem - by [L3th4l] - 07.07.2010, 13:17
Re: carcolor script problem - by Hiddos - 07.07.2010, 13:21
Re: carcolor script problem - by Kotomi - 07.07.2010, 13:41
Re: carcolor script problem - by Hiddos - 07.07.2010, 13:59
Re: carcolor script problem - by Freght - 07.07.2010, 14:06
Re: carcolor script problem - by Freght - 07.07.2010, 14:09
Re: carcolor script problem - by Hiddos - 07.07.2010, 14:10
Re: carcolor script problem - by Freght - 07.07.2010, 14:23
Re: carcolor script problem - by Freght - 07.07.2010, 14:28
Re: carcolor script problem - by Freght - 07.07.2010, 14:49
Re: carcolor script problem - by Toni - 07.07.2010, 16:22
Re: carcolor script problem - by [L3th4l] - 07.07.2010, 16:26
Re: carcolor script problem - by Freght - 08.07.2010, 01:17
Re: carcolor script problem - by Toni - 08.07.2010, 01:52

Forum Jump:


Users browsing this thread: 5 Guest(s)