20.10.2017, 08:29
PHP код:
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);
}
}
}
//add next one here
if(dialogid == put dialog id here)
{
//statements and functions here
}
return 1;
}
*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.