Dialog list can't choose an option
#10

Maybe you should try this. And i dont understand what this code is for eather.

Код:
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
{

    new
        Float:Pos[4]={-1969.3022, 309.2212, 34.9013},
        ivModel,
        ivPrice,
        ivColors[2];
    if(dialogid == DIALOG_CARBUY&& Total_Player_Vehicles[playerid]<= MAX_OWNABLE_VEH&& Total_Veh_Created < MAX_BUYABLE_VEH)
    {
        if(!response) return ShowPlayerDialog(playerid, -1, DIALOG_STYLE_LIST, "", "", "", "");
        else
        {
			if (listitem == 0)
			{
				ivModel = VEH1;
			}
			else if(listitem == 1)
			{
				ivModel = VEH2;
			}
			else if(listitem == 2)
			{
				ivModel = VEH3;
			}
			else if(listitem == 3)
			{
				ivModel = VEH4;
			}
        }
    }
}
Reply


Messages In This Thread
Dialog list can't choose an option - by vvhy - 27.04.2012, 15:50
Re: Dialog list can't choose an option - by Rudy_ - 27.04.2012, 16:12
Re: Dialog list can't choose an option - by Ballu Miaa - 27.04.2012, 16:18
Re: Dialog list can't choose an option - by HDFord - 27.04.2012, 16:26
Re: Dialog list can't choose an option - by vvhy - 27.04.2012, 16:43
Re: Dialog list can't choose an option - by Ballu Miaa - 27.04.2012, 17:02
Re: Dialog list can't choose an option - by vvhy - 27.04.2012, 17:16
Re: Dialog list can't choose an option - by HDFord - 27.04.2012, 17:19
Re: Dialog list can't choose an option - by Ballu Miaa - 27.04.2012, 17:19
Re: Dialog list can't choose an option - by HDFord - 27.04.2012, 17:30

Forum Jump:


Users browsing this thread: 6 Guest(s)