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!