18.04.2012, 16:16
Well the problem was cause of my error....imagine that lol
that is the final code, but this line was the one at fault.
I guess having the MusicName in that part makes it pick a different url. I thought you needed the MusicName enum to get to the Url enum if you know what i mean. Thanks for the help you two, i really appreciated
pawn Код:
StopAudioStreamForPlayer(playerid);
new string[128];
new randomRadio = random(sizeof(randomMusic));
PlayAudioStreamForPlayer(playerid, randomMusic[randomRadio][Url]);
SendClientMessage(playerid, -1, "Next Song/Radio Loading........");
format(string, sizeof(string), "Listening to %s", randomMusic[randomRadio][MusicName]);
SendClientMessage(playerid, -1, string);
pawn Код:
PlayAudioStreamForPlayer(playerid, randomMusic[randomRadio][Url]);
//i had it this way
PlayAudioStreamForPlayer(playerid, randomMusic[randomRadio][MusicName][Url]);

