• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] ShowMenuForPlayer Problem No back No working
#1
hola tengo un problema ShowMenuForPlayer en el men? que aparece, deja 3 opciones entre las dos primeras y comprime hacia atr?s y no funciona y es buguea porque qe atr?s no funciona. Marcarlo aqu?

[c?digo]

if (Actual == Teletransportes)

{

? ? interruptor (fila)

? ? {

? ? ? ? case 0: // Stunt zones 1

? ? ? ? {

? ? ? ? ? ? ShowMenuForPlayer(StuntZones1, playerid);

}

? ? ? ? case 1: // Stunt zones 2

? ? ? ? {

? ? ? ? ? ? ShowMenuForPlayer(StuntZones2, playerid);

}

? ? ? ? case 2: // OtherZones

? ? ? ? {

ShowMenuForPlayer(OtherZones, playerid);

}

case 3: // Exit

{

HideMenuForPlayer(Current, playerid);

TogglePlayerControllable(playerid,true);

}

}

}



if(Current == StuntZones1)

{

? ? switch(row)

? ? {

case 0: // BigJump

? ? ? ? {

TimedTele(playerid, "", -639.9559,2328.1963,135.0000,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 1: // LSTower

? ? ? ? {

TimedTele(playerid, "", 1537.1813,-1364.6439,1882.5000,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 2: // BuildingJump

? ? ? ? {

CarSpawner(playerid,461);

TimedTele(playerid, "", -2882.8174,-3074.8611,83.0000,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 3: // Chilliad

? ? ? ? {

TimedTele(playerid, "", -2338.1836, -1631.0298, 483.7010,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 4: cmd_stuntchilliad(playerid,"\1"); //stuntchilliad 2

? ? ? ? case 5: // LVAirport

? ? ? ? {

TimedTele(playerid, "", 1299.8621,1378.2822,10.3751,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

? ? ? ? }

? ? ? ? case 6: // SFAirport

? ? ? ? {

TimedTele(playerid, "", -1373.3844,-258.4916,14.0000,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

? ? ? ? }

case 7: // Back here NOT BACK PROBLEM?

{

ShowMenuForPlayer(Teleports, playerid);

TogglePlayerControllable(playerid,true);

}

}

}



if(Current == StuntZones2)

{

? ? switch(row)

? ? {

? ? ? ? case 0: // Skate park

? ? ? ? {

TimedTele(playerid, "", 1920.3247,-1402.8632,13.5703,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

? ? ? ? }

case 1: // WayToDeath

? ? ? ? {

CarSpawner(playerid,541);

TimedTele(playerid, "", 996.6433,2787.8489,1067.7532,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 2: // Stadium

{

TimedTele(playerid, "", -1478.6078,1646.1399,1052.5313,? 14, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 3: // MonsterCrash

? ? ? ? {

CarSpawner(playerid,444);

TimedTele(playerid, "", -2383.9839,2909.5325,362.3510,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 4: // FreeWay

? ? ? ? {

CarSpawner(playerid,568);

TimedTele(playerid, "",? -2847.1392,2185.9849,799.5908, 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 5: // DeadJump

? ? ? ? {

TimedTele(playerid, "", -673.3708,-3024.7944,705.3344,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

? ? }

case 6: // Upside Down

? ? ? ? {

CarSpawner(playerid,411);

TimedTele(playerid, "", 391.1825,-82.5999,558.1525,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 7: // AquaPark

{

TimedTele(playerid, "", 284.4926,-1863.2415,2.8927,? 0, 6);

TogglePlayerControllable(playerid,true);

SetTimerEx("setstunt",3000,0,"i", playerid);

}

case 8: // here NOT BACK MENU? PROBLEM?

{

ShowMenuForPlayer(Teleports, playerid);

TogglePlayerControllable(playerid,true);

}

}

}

if(Current == TrainStations)

{

? ? switch(row)

? ? {

? ? ? ? case 0: // LS

? ? ? ? {

TimedTele(playerid, "", 1734.6804,-1944.9839,13.5646,? 0, 6);

TogglePlayerControllable(playerid,true);

}

? ? ? ? case 1: // SF

? ? ? ? {

TimedTele(playerid, "", -1965.7423,161.1771,27.6875, 0, 6);

TogglePlayerControllable(playerid,true);

}

? ? ? ? case 2: // LV1

? ? ? ? {

TimedTele(playerid, "", 1430.7799,2653.1604,11.3926, 0, 6);

TogglePlayerControllable(playerid,true);

}

? ? ? ? case 3: // LV2

? ? ? ? {

TimedTele(playerid, "", 2848.7876,1293.9376,11.3906, 0, 6);

TogglePlayerControllable(playerid,true);

}

case 4: // Back

{

ShowMenuForPlayer(OtherZones, playerid);

TogglePlayerControllable(playerid,true);

}

}

}



if(Current == TuneGarages)

{

? ? switch(row)

? ? {

? ? ? ? case 0: // TuneGarage1

{

TimedTele(playerid, "", -1935.9851, 231.7287, 34.1563, 0, 6);

TogglePlayerControllable(playerid,true);

}

? ? ? ? case 1: // TuneGarage2

? ? ? ? {

TimedTele(playerid, "", -2709.7312, 217.4238, 4.1797, 0, 6);

TogglePlayerControllable(playerid,true);

}

? ? ? ? case 2: // TuneGarage3

? ? ? ? {

TimedTele(playerid, "", 2386.8020, 1036.3203, 10.8203, 0, 6);

TogglePlayerControllable(playerid,true);

}

? ? ? ? case 3: // TuneGarage4

? ? ? ? {

TimedTele(playerid, "", 2644.9768, -2030.9032, 13.5540, 0, 6);

TogglePlayerControllable(playerid,true);

}

case 4: // Back

{

ShowMenuForPlayer(OtherZones, playerid);

TogglePlayerControllable(playerid,true);

}

}

}

if(Current == OtherZones)

{

? ? switch(row)

? ? {

? ? ? ? caso 0: // TuneGarages

? ? ? ? {

? ? ? ? ? ? ShowMenuForPlayer (TuneGarages, playerid);

}

? ? ? ? caso 1: // Estaciones de tren

? ? ? ? {

ShowMenuForPlayer (TrainStations, playerid);

}

? ? ? ? caso 2: // AA

? ? ? ? {

TimedTele (playerid, "", 402.8024,2534.6926,16.700, 0, 6);

TogglePlayerControllable (playerid, true);

SetTimerEx ("setstunt", 3000,0, "i", playerid);

}

? ? ? ? caso 3: // DragRace

? ? ? ? {

TimedTele (playerid, "", 1031.1125, -2297.4236,12.8004, 0, 6);

TogglePlayerControllable (playerid, true);

SetTimerEx ("setstunt", 3000,0, "i", playerid);

? ? ? ? }

? ? ? ? caso 4: // Karting

? ? ? ? {

CarSpawner (playerid, 571);

TimedTele (playerid, "", 2888.9099,1028.5667,17.0000, 0, 6);

TogglePlayerControllable (playerid, true);

SetTimerEx ("setstunt", 3000,0, "i", playerid);

}

caso 5: // suciedad

? ? ? ? {

TimedTele (playerid, "", -1299.6615, -700.7803,1056.2037, 4, 6);

TogglePlayerControllable (playerid, true);

SetTimerEx ("setstunt", 3000,0, "i", playerid);

}

caso 6: // AdminCastle

{

if (PlayerInfo [playerid] [Level]> 0) {

TimedTele (playerid, "", -2891.6179, -76.7571,4.0496, 0, 6);

TogglePlayerControllable (playerid, true);

SetTimerEx ("setstunt", 3000,0, "i", playerid);

}

m?s{

SendClientMessage (playerid, COLOR_RED, "?S?lo los administradores pueden teletransportarse all?!");

}



? ? }

caso 7: // PinkAutos

? ? ? ? {

TimedTele (playerid, "", -1623.2146,1227.1677,7.0391, 0, 6);

TogglePlayerControllable (playerid, true);

SetTimerEx ("setstunt", 3000,0, "i", playerid);

}

? ? ? ? caso 8: // Deriva

? ? ? ? {

TimedTele (playerid, "", -309.9550,1560.8075,75.3594, 0, 6);

TogglePlayerControllable (playerid, true);

SetTimerEx ("setstunt", 3000,0, "i", playerid);

}

caso 9: // Volver

{

ShowMenuForPlayer (Teleports, playerid);

TogglePlayerControllable (playerid, true);

}

}

}

devuelve 1;

}

[/c?digo]
  Reply
#2
Vamos tio... al menos explica bien lo que sucede... de que forma se "buguea", decir solo la palabra "bug" no ayuda de mucho...



Has intentado revisar tu callback OnPlayerExitedMenu?
[Image: image.png]

UK-CORP

  Reply
#3
English only in the main forums. If you want to use your own language, post in the subforum that's dedicated to that language.
Always keep in mind that a lot of people are active on this forum in their spare time.

They are sacrificing time they could easily spend on things they would rather do, to help you instead.

  Reply


Forum Jump: