Help me with scripting
#1

help me with script
code:
http://pastebin.com/nF5NpNQ8
error:[Image: ?ui=2&ik=61b906f677&view=att&amp...amp;atsh=1]
Reply
#2

Not sure what your error is because the image hasn't loaded, but from the code here's one problem.

Код:
public OnFilterScriptExit()
{
        print("............................);
        print(" MP3 Player non caricata);
        print("............................);
        return 1;
}
Replace it with

Код:
public OnFilterScriptExit()
{
        print("............................");
        print(" MP3 Player non caricata");
        print("............................");
        return 1;
}
Post the error in text, because I bet that's not the only one.

(Updated)
Reply
#3

Quote:
Originally Posted by DanLore
Посмотреть сообщение
Not sure what your error is because the image hasn't loaded, but from the code here's one problem.

Код:
public OnFilterScriptExit()
{
        print("............................);
        print(" MP3 Player non caricata);
        print("............................);
        return 1;
}
Replace it with

Код:
public OnFilterScriptExit()
{
        print("............................");
        print(" MP3 Player non caricata);
        print("............................");
        return 1;
}
Post the error in text, because I bet that's not the only one.
In his fix he missed something within here. Try this one rather than his:
pawn Код:
public OnFilterScriptExit()
{
        print("............................");
        print(" MP3 Player non caricata");
        print("............................");
        return 1;
}
He missed a quotation mark to end to string (the stuff in quotes).
Reply
#4

Quote:
Originally Posted by nmader
Посмотреть сообщение
In his fix he missed something within here. Try this one rather than his:
He missed a quotation mark to end to string (the stuff in quotes).
My bad, thanks for updating that.
Reply
#5

pawn Код:
//----------------------------------------------------------|//
//|      _     _     _    _    __  _______   ___      ___   |//
//|     | \   | |   | |  | |  / / |  _____|  \  \    /  /   |//
//|     |  \  | |   | |  | | / /  | |         \  \  /  /    |//
//|     |   \ | |   | |  | |/ /   | |_____     \  \/  /     |//
//|     | |\ \| |   | |  |   |    |_____  |     \    /      |//
//|     | | \ \ |   | |  | |\ \         | |      |  |       |//
//|     | |  \  |   | |  | | \ \   _____| |      |  |       |//
//|     |_|   \_|   |_|  |_|  \_\ |_______|      |__|       |//
//----------------------------------------------------------|//
//|                   Niksy                                 |//
//|---------------------------------------------------------|//
//|------------------FS script by Niksy---------------------|//
#include <a_samp>

#define BELA                "{FFFFFF}"
#define ZELENA              "{6EF83C}"
#define CRVENA              "{F81414}"
#define COL_YELLOW          "{F3FF02}"
#define NARANDZASTA         "{FF8000}"
#define ZUTA                "{F3FF02}"
#define SPLAVA              "{00C0FF}"
#define ORANGE              "{FF8000}"
#define ZPLAVA              "{22C7F5}"
#define PLAVA               "{0049FF}"
#define ROZA                "{FF00EA}"
#define CMDC                "{B8FF02}"
#define SERVER              "{AFE7FF}"
#define SZELENA             "{C9FFAB}"
#define LJUB                "{EE11EE}"
#define SIVA                "{C0C0C0}"
#define NORTENOSC           "{999966}"
#define CRVENA2             "{FF6347}"
#define PPLAVA              "{0084e3}"
#define SCRV2               "{FF6347}"
#define GSCC                "{FFFF00}"
#define BALLASC             "{D1345B}"
#define HZELENA             "{04CC29}"
#define ACRVENA             "{FF0000}"
#define SVPLAVA             "{00CED1}"
#define ADCRVENA            "{FA0606}"
#define GROVE               0x00D900C8
#define AZUTA               0xFFC801C8
#define BELA2               0xFFFFFFAA
#define PROX                0xC2A2DAAA
#define SCRVENA             0xFF6347AA
#define COLOR_GRAD2         0xBFC0C2FF
#define COLOR_BLUE          0x0000BBAA
#define COLOR_WHITE         0xFFFFFFAA
#define TEAM_HIT_COLOR      0xFFFFFF00
#define COLOR_YELLOW        0xDABB3EAA
#define SVETLOPLAVA         0x33CCFFAA
#define COLOR_GREY          0xAFAFAFAA
#define COLOR_RED           0xAA3333AA
#define GREEN               0x21DD00FF
#define COLOR_LIGHTRED      0xFF6347AA
#define COLOR_LIGHTGREEN    0x24FF0AB9
#define COLOR_PLAVA         0x2641FEAA
#define COLOR_FADE1         0xE6E6E6E6
#define COLOR_FADE2         0xC8C8C8C8
#define COLOR_FADE3         0xAAAAAAAA
#define COLOR_FADE4         0x8C8C8C8C
#define COLOR_FADE5         0x6E6E6E6E
#define COLOR_ZLATO         0xFBFD97FF
#define COLOR_PURPLE        0xC2A2DAAA
#define PURPLE              0xBF60FFFF
#define RED                 0xAA3333FF
#define BLACK               0x000000FF
#define ADZUTA              0xF9F900FF
#define SCCRNA              0x040404FF
#define HEPLAVA             0x00F9F9FF
#define PURPLE1             0xF9B7FFAA
#define PURPLE2             0xE6A9ECAA
#define PURPLE3             0xC38EC7AA
#define PURPLE4             0xD2B9D3AA
#define PURPLE5             0xC6AEC7AA
#define COLOR_GREEN         0x9EC73DAA
#define LIGHTBLUE           0x00C2ECFF
#define COLOR_YELLOW2       0xF5DEB3AA
#define COLOR_LIGHTBLUE     0x33CCFFAA
#define COLOR_GRAD1         0xB4B5B7FF
#define COLOR_GRAD2         0xBFC0C2FF
#define COLOR_GRAD3         0xCBCCCEFF
#define COLOR_GRAD4         0xD8D8D8FF
#define COLOR_GRAD5         0xE3E3E3FF
#define COLOR_GRAD6         0xF0F0F0FF
#define COLOR_SIVA          0xC3C3C3FF
#define RADIO_BOJA          0x8D8DFF00
#define DEPT_BOJA           0xFF8282AA
#define TEAM_GROVE_COLOR    0x00D900C8

public OnFilterScriptInit()
{
    print("°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°");
    print("°  MP3 Player By Niksy°");
    return 1;
}

public OnFilterScriptExit()
{
    print("............................");
    print(" MP3 Player non caricata");
    print("............................");
    return 1;
}

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/mp3", cmdtext, true))
    {
        SendClientMessage(playerid, -1, ""ZUTA"Niksy Server Role Play");
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, ""ZUTA"MP3 Player By Niksy", "Balkan DJ Radio\nPink Radio\nTDI Radio\nVIP Radio\nOk Radio\nRadio Antena Zagreb\nIskljuci MP3", "Ok", "Exit");
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response)
    {
        switch(dialogid)
        {
            case 1:
            {
                StopAudioStreamForPlayer(playerid);
                switch(listitem)
                {
                    case 0:
                    {
                        PlayAudioStreamForPlayer(playerid, "http://balkan.dj.topstream.net:8070");
                        SendClientMessage(playerid, -1, ""ZUTA"[NS:RP] "BELA"Sada slusas Balkan DJ Radio");
                    }
                    case 1:
                    {
                        PlayAudioStreamForPlayer(playerid, "");
                        SendClientMessage(playerid, -1, ""ZUTA"[NS:RP] "BELA"Sada slusas Pink Radio");
                    }
                    case 2:
                    {
                        PlayAudioStreamForPlayer(playerid, "http://streaming.tdiradio.com:9000");
                        SendClientMessage(playerid, -1, ""ZUTA"[NS:RP] "BELA"Sada slusas TDI Radio");
                    }
                    case 3:
                    {
                        PlayAudioStreamForPlayer(playerid, "http://vip128.streaming.rs:8110");
                        SendClientMessage(playerid, -1, ""ZUTA"[NS:RP] "BELA"Sada slusas VIP Radio");
                    }
                    case 4:
                    {
                        PlayAudioStreamForPlayer(playerid, "http://live3.okradio.net:8002");
                        SendClientMessage(playerid, -1, ""ZUTA"[NS:RP] "BELA"Sada slusate Ok Radio");
                    }
                    case 5:
                    {
                        PlayAudioStreamForPlayer(playerid, "http://www.antenazagreb.hr/audioplayer.aspx?StaID=3");
                        SendClientMessage(playerid, -1, ""ZUTA"[NS:RP] "BELA"Sada slusate Radio Antena Zagreb");
                    }
                    case 6: SendClientMessage(playerid, -1, ""ZUTA"[NS:RP] "SIVA"Iskljucio si radio");
                }
                return 1;
            }
        }
    }
    return 0;
}
Reply
#6

Nice +1 to Threshold
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)