[HELP]compound statement not closed at the end of file
#1

WRONG:

shoutcast.pwn(104) : error 030: compound statement not closed at the end of file (started at line 90)


pawn Код:
if(strcmp(cmdtext, "/startradio",true)==0)
    {
        Radio[playerid] = Audio_PlayStreamed(playerid, "http://listen.technobase.fm/dsl.pls",false,false,false);
        Audio_SetVolume(playerid, Radio[playerid], 100);
        SendClientMessage(playerid,COLOR_YELLOW,"Connected to [TechnoBase.FM - 24h Techno, Dance, Trance, House and More].");
        return 1;
    }
    if(strcmp(cmdtext, "/stopradio",true)==0)
    {
        Audio_Stop(playerid, Radio[playerid]);
        SendClientMessage(playerid,COLOR_YELLOW,"You have disconnected from [TechnoBase.FM - 24h Techno, Dance, Trance, House and More].");
        return 1;
    }
PLEASE HELP (
Reply
#2

Um, are you sure it's right there? Which one is line 90 or just before it?
Reply
#3

if(strcmp(cmdtext, "/startradio",true)==0) it is line 90

it is from 90 to 104

how can i fix it ?
Reply
#4

It could be something right before that.
Reply
#5

there is it :
pawn Код:
// New Stuff
new Radio[MAX_PLAYERS];

// Public Stuff
public Audio_OnClientConnect(playerid)
{
    new string[128];
    format(string, sizeof(string), "Audio client ID %d connected", playerid);
    SendClientMessageToAll(COLOR_YELLOW, string);
    // Transfer the audio pack when the player connects
    Audio_TransferPack(playerid);
    return 1;
}

public Audio_OnClientDisconnect(playerid)
{
    new string[128];
    format(string, sizeof(string), "Audio client ID %d disconnected", playerid);
    SendClientMessageToAll(COLOR_YELLOW, string);
    Audio_Stop(playerid, Radio[playerid]);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/startradio",true)==0)
    {
        Radio[playerid] = Audio_PlayStreamed(playerid, "http://listen.technobase.fm/dsl.pls",false,false,false);
        Audio_SetVolume(playerid, Radio[playerid], 100);
        SendClientMessage(playerid,COLOR_YELLOW,"Connected to [TechnoBase.FM - 24h Techno, Dance, Trance, House and More].");
        return 1;
    }
    if(strcmp(cmdtext, "/stopradio",true)==0)
    {
        Audio_Stop(playerid, Radio[playerid]);
        SendClientMessage(playerid,COLOR_YELLOW,"You have disconnected from [TechnoBase.FM - 24h Techno, Dance, Trance, House and More].");
        return 1;
    }
this is the fully
Reply
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/startradio",true)==0)
    {
        Radio[playerid] = Audio_PlayStreamed(playerid, "http://listen.technobase.fm/dsl.pls",false,false,false);
        Audio_SetVolume(playerid, Radio[playerid], 100);
        SendClientMessage(playerid,COLOR_YELLOW,"Connected to [TechnoBase.FM - 24h Techno, Dance, Trance, House and More].");
        return 1;
    }
    if(strcmp(cmdtext, "/stopradio",true)==0)
    {
        Audio_Stop(playerid, Radio[playerid]);
        SendClientMessage(playerid,COLOR_YELLOW,"You have disconnected from [TechnoBase.FM - 24h Techno, Dance, Trance, House and More].");
        return 1;
    }
    return 0;//?
}//?
Reply
#7

Thanks man ! working !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)