[FilterScript] Teleport menu with teleports added
#23

I edit it but I have a problem

"error 030: compound statement not closed at the end of file (started at line 25)"


this my script


if(dialogid == DIALOGID+5) // Stunt
{
if(response)
{
if(listitem == 0) // Mount Chilliad Stunt
{
SetPlayerPos(playerid, -2322.072265, -1651.324707, 483.420562);
SetPlayerFacingAngle(playerid, 221.8533);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, 0x00FFFFAA, "You've been teleported to Mount Chilliad Stunt.");
}
if(listitem == 1) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Teleport Categories", "Los Santos\nSan Fierro\nLas Venturas\nOther", "Select", "Cancel");
}
return 1;
}
return 0;
}


or



if(dialogid == DIALOGID) // Teleport Dialog
{
if(response)
{
if(listitem == 0) // Los Santos
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Los Santos", "Los Santos Airport \nSanta Marina \nGrove Street \nCity Hall \nPolice Station \nBank \nOcean Docks \nCrazybob's House \nJefferson Motel \nAbove Los Santos \nBack", "Select", "Cancel");
}
if(listitem == 1) // San Fierro
{
ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "San Fierro", "San Fierro Airport \nCity Hall \nBank \nOcean Flats \nMissionary Hill \nJizzys Pleasure Dome \nPolice Station \nBack", "Select", "Cancel");
}
if(listitem == 2) // Las Venturas
{
ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Las Venturas", "Las Venturas Airport \nArea69 \nCity Hall \nPolice Station \nCaligulas Casino \nStarfish Casino \nBank \nPrickle Pine \nBandit Stadium \nLast Dime Motel \nAbove Las Venturas \nBack", "Select", "Cancel");
}
if(listitem == 3) // Park Our
{
ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, "Park Our", "Park Our\nPark Our 2\nBack", "Select", "Cancel");
}
if(listitem == 4) // Stunt
{
ShowPlayerDialog(playerid, DIALOGID+5, DIALOG_STYLE_LIST, "Stunt", "Mount Chilliad Stunt\nBack", "Select", "Cancel");
}
}
return 1;


Where my problem?
Sorry I'm newbie
Reply


Messages In This Thread
Teleport menu with teleports added - by captainjohn - 22.04.2011, 16:24
Re: Teleport menu with teleports added - by Crystyan12 - 22.04.2011, 17:16
Re: Teleport menu with teleports added - by Frogger75 - 22.04.2011, 20:09
Re: Teleport menu with teleports added - by [JnA]DukeNukem - 23.04.2011, 18:13
Re: Teleport menu with teleports added - by captainjohn - 24.04.2011, 09:02
Re: Teleport menu with teleports added - by misho1 - 24.04.2011, 17:00
Re: Teleport menu with teleports added - by G*Mafia - 25.04.2011, 08:52
Re: Teleport menu with teleports added - by oNe_87 - 25.04.2011, 09:11
Re: Teleport menu with teleports added - by captainjohn - 25.04.2011, 09:15
Re: Teleport menu with teleports added - by Zsox - 10.07.2011, 00:04
Re: Teleport menu with teleports added - by FaSihYouSf - 09.08.2011, 05:31
Re: Teleport menu with teleports added - by Loic - 25.08.2011, 11:47
Re: Teleport menu with teleports added - by Davz*|*Criss - 25.08.2011, 12:07
Re: Teleport menu with teleports added - by Loic - 26.08.2011, 13:01
Re: Teleport menu with teleports added - by captainjohn - 27.08.2011, 20:13
Respuesta: Teleport menu with teleports added - by hacky - 17.10.2011, 19:03
Re: Teleport menu with teleports added - by knackworst - 17.10.2011, 19:15
Re: Teleport menu with teleports added - by sk1ll3r - 30.10.2011, 14:45
Re: Teleport menu with teleports added - by [LaTinb0y]...$ag3R - 30.10.2011, 14:55
Re: Teleport menu with teleports added - by [CS]Killer778 - 05.02.2012, 09:01
Re: Teleport menu with teleports added - by [A]ndrei - 15.06.2012, 08:14
Re: Teleport menu with teleports added - by xMaGmOtAnEtHx - 15.08.2012, 04:15
Re : Teleport menu with teleports added - by AgungP - 06.08.2013, 14:42
Re: Teleport menu with teleports added - by JusstinRoller - 07.08.2013, 01:34
Re: Teleport menu with teleports added - by PT - 07.08.2013, 03:49
Re: Teleport menu with teleports added - by Team_PRO - 30.09.2013, 06:07
Re : Teleport menu with teleports added - by 1Geek - 14.02.2014, 17:45
Re: Teleport menu with teleports added - by ThePlayer - 25.04.2014, 07:51
Re: Teleport menu with teleports added - by UIF - 06.01.2015, 11:33
Re: Teleport menu with teleports added - by Glossy42O - 06.01.2015, 12:04
Re: Teleport menu with teleports added - by Subritzky - 15.04.2015, 13:15
Re: Teleport menu with teleports added - by shadowstorm - 15.04.2015, 15:35
Re: Teleport menu with teleports added - by Pi5tol - 15.04.2015, 19:51
Re: Teleport menu with teleports added - by Rohit12 - 08.08.2017, 03:42
Re: Teleport menu with teleports added - by Madddy - 16.12.2017, 11:37

Forum Jump:


Users browsing this thread: 2 Guest(s)