if (strcmp("/teles", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Teleport Categories", "Stunts\nJumps\nParkours\nFun", "Select", "Cancel"); return 1; }
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; } } }
try returning the command 0
Usually solves my dialogs problem |
and for the love of god, use ZCMD, you may not notice it now, but script in a few hundred commands and you may begin to notice some lag as it runs through and checks all the if statements.
|
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; }
if( dialogid == 100 ) // Teleport Dialog
{
if( response )
{
switch( listitem )
{
case 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" );
case 1: ShowPlayerDialog( playerid, 102, DIALOG_STYLE_LIST, "Jumps", " DeathJump (/dj) \nTunnelJump (/tj) \nGlassjump (/gj) \nPipejump (/pj) \nEpicLoop (/epicloop) \n{FF0000}Back", "Select", "Cancel" );
case 2: ShowPlayerDialog( playerid, 103, DIALOG_STYLE_LIST, "Parkour", "BMX Parkour (/bmxparkour) \nNrg Parkour (/nrgparkour) \n{FF0000}Back", "Select", "Cancel" );
case 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" );
}
}
return 1;
}
if( dialogid == 101 ) //Stunts
{
if( response )
{
switch( listitem )
{
case 0: SetPlayerPos( playerid, 2158.7890, 1685.0032, 10.6952 );
case 1: SetPlayerPos( playerid, -2682.5593, 1365.2080, 17.1303 );
case 2: SetPlayerPos( playerid, 2683.5842,1343.8342,17.1303 );
case 3: SetPlayerPos( playerid, 395.1491,2438.6826,16.2271 );//leave it
case 4: SetPlayerPos( playerid, 1318.3764, 1283.3530, 10.8203 );//lvair
case 5: SetPlayerPos( playerid, -1185.0847, 53.9153, 14.1484 );//sfair
case 6: SetPlayerPos( playerid, 422.7575, 2499.1591, 16.8386 );//aaa
case 7: SetPlayerPos( playerid, -420.3807, -3014.2290, 39.5643 );//skyroad
case 8: SetPlayerPos( playerid, -2029.9190, -118.1346, 38.9218 );//sz
case 9: ShowPlayerDialog( playerid, 100, DIALOG_STYLE_LIST, "Teleport Categories", "Stunts\nJumps\nParkours\nFun", "Select", "Cancel" );
}
}
return 1;
}
if( dialogid == 102 ) //jumps
{
if( response )
{
switch( listitem )
{
case 0: SetPlayerPos( playerid, -884.6852, 1623.2860, 775.1500 );//dj
case 1: SetPlayerPos( playerid, -53.0427, -1662.3357, 2096.4543 );//tj
case 2: SetPlayerPos( playerid, 1092.8978, 1646.5061, 542.6012 );//gj
case 3: SetPlayerPos( playerid, 1556.7491, 1846.6258, 684.5643 );//pj
case 4: SetPlayerPos( playerid, -1931.565918, 309.230560, 536.557068 );//epicloop
case 5: ShowPlayerDialog( playerid, 100, DIALOG_STYLE_LIST, "Teleport Categories", "Stunts\nJumps\nParkours\nFun", "Select", "Cancel" );
}
}
return 1;
}
if( dialogid == 103 ) //parkour
{
if( response )
{
switch( listitem )
{
case 0: SetPlayerPos( playerid, 2781.2866, -1752.6925, 118.5303 );//bmx
case 1: SetPlayerPos( playerid, 2760.4948, -1749.2545, 42.9809 );//nrg
case 2: ShowPlayerDialog( playerid, 100, DIALOG_STYLE_LIST, "Teleport Categories", "Stunts\nJumps\nParkours\nFun", "Select", "Cancel" );
}
}
return 1;
}
if(dialogid == 104) //Fun
{
if( response )
{
switch( listitem )
{
case 0: SetPlayerPos( playerid, 1531.07, 2459.84, 454.64 );//party
case 1: SetPlayerPos( playerid, 3362.3542, -1550.2255, 323.2114 );//bs
case 2: SetPlayerPos( playerid, -303.4065, 1532.6916, 75.3593 );//drift
case 3: SetPlayerPos( playerid, 1955.3232, 1575.2944, 25.7714 );//drift2
case 4: SetPlayerPos( playerid, 2687.9692, 2819.4463, 518.0095 );//hayclimb
case 5: ShowPlayerDialog( playerid, 100, DIALOG_STYLE_LIST, "Teleport Categories", "Stunts\nJumps\nParkours\nFun", "Select", "Cancel" );
}
}
return 1;
}