Radio links and names
#1

Hi guys,
I have problem with this double array. I made CMD for test radios and CMD doesn't work. I type "/radiotest 0" and I want to see radio's name and to hear music.

Код:
CMD:radiotest(playerid, params[])
{
	new _id;
	if(sscanf(params, "d", _id)) return (true);
	va_SendClientMessage(playerid, -1, "Radio: %s", _HRP_RadioStanice[_id][false]);
	return PlayAudioStreamForPlayer(playerid, _HRP_RadioStanice[_id][true]);
}

stock const _HRP_RadioStanice[8][] =
{
	{ "Idobi", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=914897" },
	{ "Jamming 181", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=125192" },
	{ "RockRadio1", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=558051" },
	{ "RauteMusik", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=31645" },
	{ "Unknow Radio", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=12786" },
	{ "True R&B", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=366480" },
	{ "The Box", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=611786" },
	{ "Dirty Shout Radio", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1524202" }
};
Reply
#2

Fixed, I failed with additional [] in stock const
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)