26.01.2013, 18:55
Ok so in my GM I have this:
It's supposed to play the sound when they push the Key_Fire button, but no sound is heard (It never plays the sound, no matter how long I press it). I DO get the Button Held Message, so whats wrong?
Thanks in advance: jakejohnsonusa
PS: I will +1 Rep. those that help (for those of you who care about Rep's)
pawn Код:
if ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
{
new Float:x;
new Float:y;
new Float:z;
GetPlayerPos(playerid,x,y,z);
for (new i = 0; i != MAX_PLAYERS; ++i)
{
if (IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 200, x, y, z))
{
SendClientMessage(i, COLOR_RED, "Button Held");
mystream[playerid] = Audio_PlayStreamed(i, "http://k007.kiwi6.com/hotlink/t9tqfo1q1p/air_horn.mp3", false, true, true);
Audio_Set3DPosition(i, mystream[playerid], x, y, z, 200.0);
}
}
}
}
Thanks in advance: jakejohnsonusa
PS: I will +1 Rep. those that help (for those of you who care about Rep's)