21.01.2012, 05:47
How would I make it so it plays not just for me but EVERYONE within the certain range. Not globally just within the range I put it ?
Код:
PlayAudioStreamForPlayer
PlayAudioStreamForPlayer
PlayAudioStreamForPlayer( playerid, (playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)
PlayAudioStreamForPlayer( playerid, (playerid, inputtext, aX, aY, aZ, range, 1)
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, "http://24.media.v4.skyrock.net/music/245/dcd/245dcdbcbc5b0e5b2f89c26fc1eed062.mp3");
}
new Float:x, Float:y, Float:z;
GetPlayerPos( playerid, x, y, z );
PlayAudioStreamForPlayer( playerid, inputtext, x, y, z, 30, 1 ); // 30 meters
error 035: argument type mismatch (argument 2)