I need a little help with this one.
#2

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    new 
Float:x,Float:y,Float:z;
    if(
dialogid==&& 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);
            }
        }
    }
    
//add next one here
    
if(dialogid == put dialog id here)
    {
        
//statements and functions here
    
}
    return 
1;

and for your convenience here are some tips:
*Use easyDialogs for making dialogs as you are getting confused with OnDialogResponse
*Try to intend your codes, it will be easier for you to read them later.
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: 3 Guest(s)