17.02.2012, 10:45
hey there i made a /teles Dialog But its not working
This Video Will explain my Problem
[ame]http://www.youtube.com/watch?v=iTOLV-UnZgA&context=C38f6823ADOEgsToPDskIuWu9tsm4xIiYzuv rvaTDv[/ame]
here is my OnDialogResponseCode
This Video Will explain my Problem
[ame]http://www.youtube.com/watch?v=iTOLV-UnZgA&context=C38f6823ADOEgsToPDskIuWu9tsm4xIiYzuv rvaTDv[/ame]
here is my OnDialogResponseCode
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 100) // Teleport Dialog
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 101, DIALOG_STYLE_LIST, "Stunts", "Las Venturas \nSan Fierro \nLos Santos\nLos Santos Airport (/lsair) \nLas Venturas Airport (/lvair) \nSan Fierro Airport (/sfair) \nOld airport (/aa) \nSky road (/skyroad) \nStunt zone (/sz) \n{FF0000}Back", "Select", "Cancel");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, 102, DIALOG_STYLE_LIST, "Jumps", " DeathJump (/dj) \nTunnelJump (/tj) \nGlassjump (/gj) \nPipejump (/pj) \nEpicLoop (/epicloop) \n{FF0000}Back", "Select", "Cancel");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, 103, DIALOG_STYLE_LIST, "Parkour", "BMX Parkour (/bmxparkour) \nNrg Parkour (/nrgparkour) \n{FF0000}Back", "Select", "Cancel");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, 104, DIALOG_STYLE_LIST, "Fun", "Party (/party) \nBasketCar (/basketcar) \nDrift (/drift) \nDrift 2 (/drift2)\n HayClimb (/hayclimb) \n{FF0000}Back", "Select", "Cancel");
}
}
if(dialogid == 101) //Stunts
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid, 2158.7890, 1685.0032, 10.6952);
}
if(listitem == 1)
{
SetPlayerPos(playerid, -2682.5593, 1365.2080, 17.1303);
}
if(listitem == 2)
{
SetPlayerPos(playerid, 2683.5842,1343.8342,17.1303);
}
if(listitem == 3)
{
SetPlayerPos(playerid, 395.1491,2438.6826,16.2271);//leave it
}
if(listitem == 4)
{
SetPlayerPos(playerid, 1318.3764, 1283.3530, 10.8203);//lvair
}
if(listitem == 5)
{
SetPlayerPos(playerid, -1185.0847, 53.9153, 14.1484);//sfair
}
if(listitem == 6)
{
SetPlayerPos(playerid, 422.7575, 2499.1591, 16.8386);//aaa
}
if(listitem == 7)
{
SetPlayerPos(playerid, -420.3807, -3014.2290, 39.5643);//skyroad
}
if(listitem == 8)
{
SetPlayerPos(playerid, -2029.9190, -118.1346, 38.9218);//sz
}
if(listitem == 9)
{
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Teleport Categories", "Stunts\nJumps\nParkours\nFun", "Select", "Cancel");
}
if(dialogid == 102) //jumps
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid, -884.6852, 1623.2860, 775.1500);//dj
}
if(listitem == 1)
{
SetPlayerPos(playerid, -53.0427, -1662.3357, 2096.4543);//tj
}
if(listitem == 2)
{
SetPlayerPos(playerid, 1092.8978, 1646.5061, 542.6012);//gj
}
if(listitem == 3)
{
SetPlayerPos(playerid, 1556.7491, 1846.6258, 684.5643);//pj
}
if(listitem == 4)
{
SetPlayerPos(playerid, -1931.565918, 309.230560, 536.557068);//epicloop
}
if(listitem == 5) // Back
{
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Teleport Categories", "Stunts\nJumps\nParkours\nFun", "Select", "Cancel");
}
}
}
if(dialogid == 103) //parkour
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid, 2781.2866, -1752.6925, 118.5303);//bmx
}
if(listitem == 1)
{
SetPlayerPos(playerid, 2760.4948, -1749.2545, 42.9809);//nrg
}
if(listitem == 2) // Back
{
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Teleport Categories", "Stunts\nJumps\nParkours\nFun", "Select", "Cancel");
}
}
}
}
if(dialogid == 104) //Fun
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid, 1531.07, 2459.84, 454.64);//party
}
if(listitem == 1)
{
SetPlayerPos(playerid, 3362.3542, -1550.2255, 323.2114);//bs
}
if(listitem == 2)
{
SetPlayerPos(playerid, -303.4065, 1532.6916, 75.3593);//drift
}
if(listitem == 3)
{
SetPlayerPos(playerid, 1955.3232, 1575.2944, 25.7714);//drift2
}
if(listitem == 4)
{
SetPlayerPos(playerid, 2687.9692, 2819.4463, 518.0095);//hayclimb
}
if(listitem == 5) // Back
{
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Teleport Categories", "Stunts\nJumps\nParkours\nFun", "Select", "Cancel");
}
}
}
}
}
return 1;