[HELP]compound statement not closed at the end of file -
LekMiT - 12.10.2011
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

(
Re: [HELP]compound statement not closed at the end of file -
Backwardsman97 - 12.10.2011
Um, are you sure it's right there? Which one is line 90 or just before it?
Re: [HELP]compound statement not closed at the end of file -
LekMiT - 12.10.2011
if(strcmp(cmdtext, "/startradio",true)==0) it is line 90
it is from 90 to 104
how can i fix it ?
Re: [HELP]compound statement not closed at the end of file -
Backwardsman97 - 12.10.2011
It could be something right before that.
Re: [HELP]compound statement not closed at the end of file -
LekMiT - 12.10.2011
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
Re: [HELP]compound statement not closed at the end of file -
Backwardsman97 - 12.10.2011
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;//?
}//?
Re: [HELP]compound statement not closed at the end of file -
LekMiT - 12.10.2011
Thanks man ! working !