I need a little help with this one.
#1

How can i create another dialog to OnDialogResponse, But i don't know how to add another one with out getting errros. Can you help me?

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	new Float:x,Float:y,Float:z;
	if(dialogid==2 && response==1)
	{
	    switch(listitem)
		{
		    case 0:
		    {
			 GetPlayerPos(playerid,x,y,z);
			 CreateVehicle(522,x+3.0,y,z,0,0,0,0);
		    }
		    case 1:
		    {
			 GetPlayerPos(playerid,x,y,z);
			 CreateVehicle(522,x+3.0,y,z,0,0,0,0);
		    }
		    case 2:
		    {
			 GetPlayerPos(playerid,x,y,z);
			 CreateVehicle(522,x+3.0,y,z,0,0,0,0);
		    }
		}
	}return 1;
}
Please help
Reply


Messages In This Thread
I need a little help with this one. - by sBlackWood - 20.10.2017, 08:22
Re: I need a little help with this one. - by Zeth - 20.10.2017, 08:29
Re: I need a little help with this one. - by sBlackWood - 20.10.2017, 08:40
Re: I need a little help with this one. - by Escobabe - 20.10.2017, 08:42
Re: I need a little help with this one. - by sBlackWood - 20.10.2017, 08:53
Re: I need a little help with this one. - by Zeth - 20.10.2017, 08:58

Forum Jump:


Users browsing this thread: 6 Guest(s)