Originally Posted by SpikeCompiler
Erros de chaves, vocк estava esquecendo de fechar.
PHP код:
if (strcmp("/rock", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0) { //chave aberta
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://23.29.71.154:8140/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: xxxRockFM");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
} // chave fechada, porйm nгo fechou a "if(RadioPlayer[playerid] == 0)"
PHP код:
if (strcmp("/hiphop", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://209.95.50.189:8124/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: Urban Hitz");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/reggaeton", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://192.184.9.158:8836/listen.pls&t=.m3u");
SendClientMessage(playerid, green, "Radio: ReggaetonColombia");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/eletronica", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://pulseedm.cdnstream1.com:8124/1373_128.m3u&t=.m3u");
SendClientMessage(playerid, green, "Radio: PulseEDM Dance Music Radio");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/metal", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://192.99.62.212:9408/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: MetalRockFM");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/hiphop2", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://149.56.175.167:5461/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: Hip Hop Request");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/country", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://188.165.232.7:8477/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: Country Hits Radio");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/blues", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://37.59.14.77:8352/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: Blues Radio");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/rock", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://23.29.71.154:8140/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: xxxRockFM");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/hiphop3", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://149.56.157.81:8677/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: Big Shot Radio");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/hiphop4", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://88.198.10.229:8150/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: Bounce Radio");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/wutang", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://162.252.85.85:8872/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: Wu World Radio");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/hiphop5", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://144.217.180.30:8218/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: OldSchoolRapFM");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if (strcmp("/hiphop6", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =1;
PlayAudioStreamForPlayer(playerid, "http://74.82.59.197:8208/listen.pls?sid=1&t=.m3u");
SendClientMessage(playerid, green, "Radio: 223 Media Radio NY");
SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
return 1;
}
}
if(strcmp("/radiooff", cmdtext, true, 10) == 0)
{
if(RadioPlayer[playerid] == 0)
{
RadioPlayer[playerid] =0;
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, red, "* Radio Off!");
return 1;
}
}
return 1;
}
|