(33901) : error 017: undefined symbol "ShowSubtitle" (33902) : error 017: undefined symbol "PlayerNameEx" (33904) : error 017: undefined symbol "ListeningToRadio" (33904) : warning 215: expression has no effect (33904) : error 001: expected token: ";", but found "]" (33904) : error 029: invalid expression, assumed zero (33904) : fatal error 107: too many error messages on one line |
ShowSubtitle(playerid, "Radio changed, now playing: Hot 108 Jamz!.", 1000, 1); format(string, sizeof(string), "* %s changed the radio station to Hot 108 Jamz.", PlayerNameEx(playerid)); ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); ListeningToRadio[playerid] = 1; |
new string[128];
SendClientMessage(playerid, -1, "Radio changed, now playing: Hot 108 Jamz !");
format(string, sizeof(string), "%s changed the radio station to Hot 108 Jamz", PlayerNameEx(playerid));
SendClientMessageToAll(-1, string);
ListeningToRadio[playerid] = 1;
/*
Or you can use : PlayAudioStreamForPlayer
*/
CMD:radiostation(playerid, params[])
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new radiostation;
new carID;
new string[256];
carID = GetPlayerVehicleID(playerid);
if(!sscanf(params, "i", radiostation))
{
if(radiostation < 1 || radiostation > 3)
{
SendClientMessage(playerid, COLOR_LIGHTRED, " The radio station must be between 1 and 3!");
return 1;
}
else if(radiostation == 1)
{
Audio_Stop(playerid,1);
Audio_Stop(playerid,2);
Audio_Stop(playerid,3);
Audio_Stop(playerid,4);
Audio_Stop(playerid,5);
Audio_PlayStreamed(playerid, "http://www.hot108.com/hot108.pls", false, false, false);
RadioPlaying[carID] = radiostation;
ShowSubtitle(playerid, "Radio changed, now playing: Hot 108 Jamz!.", 1000, 1);
format(string, sizeof(string), "* %s changed the radio station to Hot 108 Jamz.", PlayerNameEx(playerid));
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ListeningToRadio[playerid] = 1;
return 1;
}