15.10.2013, 19:23
(
Последний раз редактировалось BlueBaron; 15.10.2013 в 19:29.
Причина: Little mistake in code...
)
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.
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.
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;
}