03.03.2014, 17:11
i wanted to play stream when someone is in interior
i tried to make it , but i dont know where is the bug and when i get inside the interior (The Stream start spaming, and there is to much lag)
Edit: if you gonna help me please explain me what i did wrong i want to teach this .
here is the code
here are some photos
i tried to make it , but i dont know where is the bug and when i get inside the interior (The Stream start spaming, and there is to much lag)
Edit: if you gonna help me please explain me what i did wrong i want to teach this .
here is the code
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerInterior(playerid) == 6)
{
PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/doublekill.mp3", 2554.4253, 1417.2795, 7703.7041, 50.0, 1);
}
else
{
StopAudioStreamForPlayer(playerid);
}