17.06.2012, 14:17
Hi there,
I have some strange error, when I play some music, it simply doesn't play it.
I loaded plugin to server, and installed client side...
Here is my code:
and in audio.txt file I got Error creating mixer for playback of "http://yp.shoutcast.com/sbin/tunein-station.pls?id=98355": Invalid handle
I have some strange error, when I play some music, it simply doesn't play it.
I loaded plugin to server, and installed client side...
Here is my code:
pawn Код:
enum rdInfo
{
rHandleID,
bool:rPlaced,
rObject,
rPlay,
Float:Radio[3],
};
new RadioInfo[MAX_PLAYERS][rdInfo];
format(globalstring, sizeof(globalstring), "* %s pali kazetofon i podesava stanicu %s.", PlayerInfo[playerid][pDisplayName], RadioStations[listitem][sname]);
ProxDetector(15.0, playerid, globalstring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
RadioInfo[playerid][rPlay] = true;
foreach(Player, id)
{
if(!Audio_IsClientConnected(id)) continue;
RadioInfo[playerid][rHandleID] = Audio_PlayStreamed(id, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=98355", false, false, true);
Audio_Set3DPosition(id, RadioInfo[playerid][rHandleID], RadioInfo[playerid][Radio][0], RadioInfo[playerid][Radio][1], RadioInfo[playerid][Radio][2], 30.0);
}