20.10.2017, 08:22
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?
Please help
Код:
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;
}

