PlayAudioStreamForPlayer and Arrays BUG
#7

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Ahhh I see... my bad... I was reading it as a single string derp try doing it like this

Note: Adjust MAX_STATION_NAME and MAX_STATION_LINK to appropriate sizes.

pawn Код:
#define MAX_STATION_NAME 128
#define MAX_STATION_LINK 256

enum StationInfo {
    StationName[MAX_STATION_NAME],
    StationLink[MAX_STATION_LINK],
}

new RockStations [] [StationInfo] =
{
    {"181.fm - The Buzz!", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=37586"},
    {"Radio Paradise", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=785339"},
    {"181.fm - Awesome 80's", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=785339"},
    {"idobi Radio", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=914897"},
    {"Star.fm - Maximum Rock!", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=108588"},
    {"181.fm - 90's Alternative", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1034265"},
    {"181.fm - Hard Rock Heaven", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=106750"}
};

PlayAudioStreamForPlayer(i, RockStations[listitem][StationLink]); //60 being the size of the string.
That should work for you now sorry about that I'm pretty tired and missed that at first glance.
Oh man... YOU... are a life saver...

Thank you so much! I don't know what I would've done without your help!
That is absolutely a well deserved +rep!

Really, thank you so much!
Reply


Messages In This Thread
PlayAudioStreamForPlayer and Arrays BUG - by Vexus - 05.09.2013, 17:51
Re: PlayAudioStreamForPlayer and Arrays BUG - by Konstantinos - 05.09.2013, 18:05
Re: PlayAudioStreamForPlayer and Arrays BUG - by Vexus - 09.09.2013, 03:57
Re: PlayAudioStreamForPlayer and Arrays BUG - by Pottus - 09.09.2013, 04:02
Re: PlayAudioStreamForPlayer and Arrays BUG - by Vexus - 09.09.2013, 04:06
Re: PlayAudioStreamForPlayer and Arrays BUG - by Pottus - 09.09.2013, 04:09
Re: PlayAudioStreamForPlayer and Arrays BUG - by Vexus - 09.09.2013, 04:28
Re: PlayAudioStreamForPlayer and Arrays BUG - by Pottus - 09.09.2013, 04:31

Forum Jump:


Users browsing this thread: 1 Guest(s)