Vehicle Color - Dialog Input
#3

Yep something like that

pawn Код:
new StoredColor[MAX_PLAYERS];


Command you show dialog wow awesome{
    ShowTheDialogForTheFristColor!
    StoredColor[playerid] = 0;
}

if(dialogid == 1754)
{
    if(response)
    {
        if(strval(inputtext) < 0)
        {
            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!");
        }
        if(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!");
        }
        StoredColor[playerid] = strval(inputtext);
        //HERE YOU SHOW THE SECOND DIALOG....
    }
    return 1;
}
if(dialogid == 1755)
{
    if(response)
    {
        if(strval(inputtext) < 0)
        {
            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!");
        }
        if(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!");
        }
        ChangeVehicleColor(GetPlayerVehicleID(playerid),StoredColor[playerid],strval(inputtext));
    }
    return 1;
}
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)