compound statement not closed at the end of file
#1

Код:
C:\Documents and Settings\Owner\Desktop\saserver\filterscripts\MPlaylist.pwn(99) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\saserver\filterscripts\MPlaylist.pwn(121) : error 030: compound statement not closed at the end of file (started at line 28)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
#include <a_samp>
#include <zcmd>

#define FILTERSCRIPT

#define Music1 8182
#define Music2 8183


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Music Playlist FS By xXitsgodzillaXx");
    print("--------------------------------------\n");
    return 1;
}

    CMD:music(playerid, params[])
{
    ShowPlayerDialog(playerid, Music1, DIALOG_STYLE_LIST, "Music", "Stop Music\nHighway to hell - ACDC\nTNT - ACDC\nBack In Black - ACDC\nHells Bells - ACDC\nShe Shook me all night long - ACDC\nSomeone like you - Adele\nColt .45 - AfroMan\nFantasy - AldoNova\nToo Close - Alex Clare\nSmooth Criminal - Alien Ant Farm\nSail - Awolnation\nFight for your right - Beastie Boys\nIntergalactic - Beastie Boys\nDay Tripper - The Beatles\nCome Together - The Beatles\nList 2", "Play", "Close");
    return 1;
}
   
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == Music1)
    {
        if(response)// Line 28
        {
            if(listitem == 0)
            {
                StopAudioStreamForPlayer(playerid);
            }
            if(listitem == 1)
            {
                PlayAudioStreamForPlayer(playerid, "http://the-inter.net/www/dlinden/ACDC%20-%20Highway%20To%20Hell.mp3");//highway to hell
            }
            if(listitem == 2)
            {
                PlayAudioStreamForPlayer(playerid, "http://users1.ml.mindenkilapja.hu/users/dalfordito/uploads/ACDC-TNT.mp3");//tnt
            }
            if(listitem == 3)
            {
                PlayAudioStreamForPlayer(playerid, "http://noblekingminoratom2005.ourhockey.net/Music/ACDC%20-%20Back%20In%20Black.mp3");//back in black
            }
            if(listitem == 4)
            {
                PlayAudioStreamForPlayer(playerid, "http://mytracklist.com/dl3213.mp3");//hells bells
            }
            if(listitem == 5)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.toroscope.com/1980/youshookmeallnightlong.mp3");//she shook me all night long
            }
            if(listitem == 6)
            {
                PlayAudioStreamForPlayer(playerid, "http://imedia.imuzik.com.vn/Resources/Data/Users/yanagi/MP3/20092011-092cfd1a-ce42-46bd-ab7c-39eb49b7620b.mp3");//someone like you
            }
            if(listitem == 7)
            {
                PlayAudioStreamForPlayer(playerid, "http://bigtimebeats.com/wp-content/uploads/Colt-45.mp3");//Colt .45
            }
            if(listitem == 8)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.ephemeron.net/audio/Aldo%20Nova%20-%20Fantasy.mp3");//fantasy
            }
            if(listitem == 9)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.audiodrums.com/audio/2012/04/Alex%20Clare%20-%20Too%20Close.mp3");//to close
            }
            if(listitem == 10)
            {
                PlayAudioStreamForPlayer(playerid, "http://k4z4m4.free.fr/radio.blog/sounds/Alien%20Ant%20Farm%20-%20Smooth%20Criminal.mp3.rbs");//smooth criminal
            }
            if(listitem == 11)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.trashbags.net.au/wp-content/uploads/2010/11/irdd-awolnation-sail.mp3");//sail
            }
            if(listitem == 12)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.mydadsipod.com/music/Beastie%20Boys%20-%20Fight%20For%20Your%20Right%20To%20Party.mp3");//fight for your right
            }
            if(listitem == 13)
            {
                PlayAudioStreamForPlayer(playerid, "http://biablo.blolol.com/random/beastieboys/10%20-%20Track%2010%20-%20Album.mp3");//intergalactic
            }
            if(listitem == 14)
            {
                PlayAudioStreamForPlayer(playerid, "http://skswlr.free.fr/Ma%20musique/The%20Beatles%20-%20Day%20Tripper.mp3");//day tripper
            }
            if(listitem == 15)
            {
                PlayAudioStreamForPlayer(playerid, "http://orislibertaem.free.fr/Musique/Beatles/Love/19-Come%20Together.mp3");//come together
            }
            if(listitem == 16)
            {
                ShowPlayerDialog(playerid, Music2, DIALOG_STYLE_LIST, "Music", "Stop Music\nYellow Submarine - The Beatles\nLucy in the sky with diamons - The Beatles", "Select", "Close");
            }

    if(dialogid == Music2)//line 99
    {
        if(response)
        {
            if(listitem == 0)
            {
                StopAudioStreamForPlayer(playerid);
            }
            if(listitem == 1)
            {
                PlayAudioStreamForPlayer(playerid, "http://xn--rsss6ihnl6s2sk.cn/trx/200709/W020070927373653918745.mp3");//yellow submarine
            }
            if(listitem == 2)
            {
                PlayAudioStreamForPlayer(playerid, "http://tylergrund.com/mp3/Beatles/Lucy%20in%20the%20Sky%20with%20Diamonds.mp3");//lucy in the sky with diamonds
            }

        }
        return 1;
    }
    return 0;
}
Keep getting this error help please? nothing looks wrong to me but of course I usually miss little things.
Reply
#2

pawn Код:
if(dialogid == Music1)
    {
        if(response)// Line 28
        {
close this dialog
Reply
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
if(dialogid == Music1)
    {
        if(response)// Line 28
        {
close this dialog
Oh man duhhhh I forgot about that, I'm so oblivious half the time XD Thanks so much tho!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)