Command Need - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Command Need (
/showthread.php?tid=202020)
Command Need -
SamyRomafia - 23.12.2010
I need a command:
/carcolor (colorid1) (colorid2)
I searched but i cant fint nafy.
Sorry for my bad eng
Re: Command Need - [L3th4l] - 23.12.2010
pawn Код:
CMD:carcolor(playerid, params[])
{
new C1, C2;
if(sscanf(params, "ii", C1, C2)) return SendClientMessage(playerid, -1, "Usage: /CarColor < Color 1 > < Color 2 >");
ChangeVehicleColor(GetPlayerVehicleID(playerid), C1, C2);
return 1;
}
Re: Command Need -
SamyRomafia - 23.12.2010
How replace this ; sscanf? ( if(sscanf(pa )
I using zcmd
Re: Command Need -
willsuckformoney - 23.12.2010
Give er' a try!
pawn Код:
CMD:carcolor(playerid, params[])
{
new C1, C2, tmp, tmp2, Index; tmp = strtok(params, Index); tmp2 = strtok(params, Index);
C1 = strval(tmp); C2 = strval(tmp2);
if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, -1, "Usage: /CarColor < Color 1 > < Color 2 >");
ChangeVehicleColor(GetPlayerVehicleID(playerid), C1, C2);
return 1;
}