Colorlist Command Question.
#1

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.
Reply
#2

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.
Reply
#3

You mean the vehicle colours?

http://forum.sa-mp.com/showpost.php?...postcount=1020
Reply
#4

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 ?
Reply
#5

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.
Reply
#6

Alright. Thank you very much. I'll try to understand all this code and use it from now on when I need it.
Reply
#7

EDIT: Wrong thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)