Colorlist Command Question. - 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: Colorlist Command Question. (
/showthread.php?tid=515690)
Colorlist Command Question. -
rappy93 - 27.05.2014
Hey there. I want to create a /colorlist command for Mechanics but I'm not really sure how to do it. I mean,how to get all those colors automatically or in some other way than manually one by one ( since there are a lot and it would take a LONG time).
If anyone has any suggestions/ideas,please share them. Thank you.
Re: Colorlist Command Question. -
Scrillex - 27.05.2014
I can tell you one thing.. You need to make a dialog and enter all colors manually by writing them in the include or your script.
Re: Colorlist Command Question. -
Konstantinos - 27.05.2014
You mean the vehicle colours?
http://forum.sa-mp.com/showpost.php?...postcount=1020
Re: Colorlist Command Question. -
rappy93 - 27.05.2014
And how can I make it look like this ?
Im not really good with dialogs. And I'm using easydialog as well.Can you give me an example or at least explain how to do it ?
Re: Colorlist Command Question. -
Konstantinos - 27.05.2014
pawn Код:
new
info[3343],
count = -1;
for (new i; i != sizeof (gVehicleColors); ++i)
{
format(info, sizeof (info), "%s{%06x}#%03i ", info, gVehicleColors[i] >>> 8, i);
if (++count == 15)
{
strcat(info, "\n", sizeof (info));
count = -1;
}
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Vehicle Colours", info, "Close", "");
Replace ShowPlayerDialog and its arguments with those easyDialog uses.
Re: Colorlist Command Question. -
rappy93 - 27.05.2014
Alright. Thank you very much. I'll try to understand all this code and use it from now on when I need it.
Re: Colorlist Command Question. -
Konstantinos - 03.06.2014
EDIT: Wrong thread.