Vehicle Color - Dialog Input
#1

So yeah, as the title says I'm a bit stuck here. So, I'm making "something". So, i decided to put a vehicle color changer that works with dialog input. When they write the command/ select it via a dialog list it asks them for the : First Color ID and after putting a valid number 0-255 the second color ID. So, for ChangeVehicleColor you have to input "color1" and "color2". Here's where I'm stuck. If I only had to do one ID it would of been easy "inputtext" but now ehhh... How to save the First ColorID from the first dialog, so i can use it altogether with the Second ID on the Second Dialog.

pawn Код:
if(dialogid == 1754)
    {
        if(response)
        {
            if(strval(inputtext) < 0 || strval(inputtext) > 255)
            {
                ShowPlayerDialog(playerid, 1754, DIALOG_STYLE_INPUT, "Color", "Input your first vehicle color ID! 0-255", "Choose", "Exit");
                SendClientMessage( playerid, -1, "Error: You must input a valid ID 0-255!");
            }
            //My beautiful code
        }
        return 1;
    }
    if(dialogid == 1755)
    {
        if(response)
        {
            if(strval(inputtext) < 0 || strval(inputtext) > 255)
            {
                ShowPlayerDialog(playerid, 1755, DIALOG_STYLE_INPUT, "Color", "Input your second vehicle color ID! 0-255", "Choose", "Exit");
                SendClientMessage( playerid, -1, "Error: You must input a valid ID 0-255!");
            }
            //My beautiful code
        }
        return 1;
    }
If you don't understand, What I'm trying to say just Ask about it. I wrote this in confusion, so my brain isn't in its full potential.
Reply


Messages In This Thread
Vehicle Color - Dialog Input - by BlueBaron - 15.10.2013, 19:23
Re: Vehicle Color - Dialog Input - by DanishHaq - 15.10.2013, 19:30
Re: Vehicle Color - Dialog Input - by iJumbo - 15.10.2013, 19:32
Re: Vehicle Color - Dialog Input - by BlueBaron - 15.10.2013, 19:33
Re: Vehicle Color - Dialog Input - by DanishHaq - 15.10.2013, 19:34
Re: Vehicle Color - Dialog Input - by iJumbo - 15.10.2013, 19:37
Re: Vehicle Color - Dialog Input - by DanishHaq - 15.10.2013, 19:43
Re: Vehicle Color - Dialog Input - by BlueBaron - 15.10.2013, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)