random colors - 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)
+--- Thread: random colors (
/showthread.php?tid=648996)
random colors -
mvrky - 01.02.2018
Help me here please, i want to make a cmd that spawns car with color1 and 2 but at the same time if the person dont put anything on color1 or 2 these colors come randomly and i was getting sscanf error untill now, but now they simply come black, both colors if you can help me i would be really gratefull
PHP код:
new VeiculoID,Veiculo[25], colour1, colour2;
if(sscanf(params, "s[25]I()I()",Veiculo,colour1,colour2)) SendClientMessage(playerid, Branco, "Uso: /Car [nome] [cor] [cor2]");
Re: random colors -
DobbysGamertag - 01.02.2018
Does the value of
pawn Код:
sscanf(params, "s[25]I(-1)I(-1)");
Not work?
Re: random colors -
mvrky - 01.02.2018
thank you so much, i've been away from pawn for 3 years, didn't remembered