Üdv , csináltam 1 teleport menüt be kategoriázva csak az a baj hogy a 2.odik kategoriába szereplõ teleportok nem müködnek :S
Kod :
[pawn]
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 30 && response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid,Teleport1,DIALOG_STYLE_LIST,\"Teleport menü 1 \",\"Los Santos\\nSan fierro\\n Last Venturas\\n Los Santos Reptér\\n San Fierro Reptér\\n Las venturas Reptér\\n Old Air\",\"Teleportál\",\"\");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid,Teleport2,DIALOG_STYLE_LIST,\"Teleport Menü 2\",\"Tunnig Mühely1\\nTuning Mühely2\\nTuningMühely3\\nTuningMühely4\\nTuningMühely5\\n Kikötö,\\nTenger Part\",\"Teleport\",\"\");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid,Drift,DIALOG_STYLE_LIST,\"Drift menü\",\"Drift1\\nDrift2\\nDrift3\\nDrift4\\nDrift5\\nDrift6\",\"Teleport\",\"\");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid,DM,DIALOG_STYLE_LIST,\"Deathmatch\",\"M4 Deathmatch\",\"TELEPORT\",\"\");
}
}
if(dialogid == Teleport1 && response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,2780.1543,-2011.6954,13.5547);
}
if(listitem == 1)
{
SetPlayerPos(playerid,-1917.6565,291.8503,41.0469);
}
if(listitem == 2)
{
SetPlayerPos(playerid,2351.6108,1399.0216,42.8203);
}
if(listitem == 3)
{
SetPlayerPos(playerid,1412.8171,-2435.1362,13.5766);
}
if(listitem == 4)
{
SetPlayerPos(playerid,-1567.6731,-179.2296,14.1484);
}
if(listitem == 5)
{
SetPlayerPos(playerid,1529.6984,1799.4802,10.8344);
}
if(listitem == 6)
{
SetPlayerPos(playerid,373.8240,2472.2849,16.4844);
}
if(dialogid == Teleport2 && response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,1040.4081,-1028.7715,32.1016);
}
if(listitem == 1)
{
SetPlayerPos(playerid,-1935.7817,234.2794,34.1563);
}
if(listitem == 2)
{
SetPlayerPos(playerid,-2714.7266,217.1534,4.2993);
}
if(listitem == 3)
{
SetPlayerPos(playerid,2388.4277,1040.0836,10.8203);
}
if(listitem == 4)
{
SetPlayerPos(playerid,2644.7869,-2021.1720,13.5469);
}
if(listitem == 5)
{
SetPlayerPos(playerid,2296.1553,571.5407,7.7813);
}
if(listitem == 6)
{
SetPlayerPos(playerid,266.9627,-1867.2128,2.7195);
}
}
}
return 1;
}[/pawn]
Error/warning nincs