05.11.2012, 03:28
Is this function bugged? Because I made a boombox system and when you play the audio stream, it works fine, but then after a few seconds, it just stops playing...
I then created a simple command:
To test the audio function to see if it was just the boombox system, and it does the exact same thing.
Any help?
EDIT: Found out it's only me that the audio stops playing for. Is there something I have to download for it to work properly?
I then created a simple command:
pawn Code:
CMD:playaudio(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /playaudio [music url]");
if(strlen(params) > 0)
{
PlayAudioStreamForPlayer(playerid, params, 0.0, 0.0, 0.0, 50.0, 0);
}
return 1;
}
Any help?
EDIT: Found out it's only me that the audio stops playing for. Is there something I have to download for it to work properly?