Array/enum help
#8

Well the problem was cause of my error....imagine that lol
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);
that is the final code, but this line was the one at fault.
pawn Код:
PlayAudioStreamForPlayer(playerid, randomMusic[randomRadio][Url]);
//i had it this way
PlayAudioStreamForPlayer(playerid, randomMusic[randomRadio][MusicName][Url]);
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
Reply


Messages In This Thread
Array/enum help - by nickdodd25 - 18.04.2012, 03:40
Re: Array/enum help - by SuperViper - 18.04.2012, 04:03
Re: Array/enum help - by Marco_Valentine - 18.04.2012, 04:06
Re: Array/enum help - by nickdodd25 - 18.04.2012, 05:03
Re: Array/enum help - by Marco_Valentine - 18.04.2012, 05:18
Re: Array/enum help - by nickdodd25 - 18.04.2012, 05:36
Re: Array/enum help - by Marco_Valentine - 18.04.2012, 06:41
Re: Array/enum help - by nickdodd25 - 18.04.2012, 16:16

Forum Jump:


Users browsing this thread: 1 Guest(s)