15.10.2013, 19:32
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;
}