streaming music problem
#3

No need to use sscanf for just one input. (nor foreach)

Код:
CMD:musicforall(playerid, params[]) 
{ 
    new Float: Pos[3];
    if(isnull(params))
        return SendClientMessage(playerid, -1, "/musicforall (url)");

    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); 
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerInRangeOfPoint(i, 10.0, Pos[0], Pos[1], Pos[2]))
   	{
            PlayAudioStreamForPlayer(i, params);
	}
    }
    return 1; 
}
Reply


Messages In This Thread
streaming music problem - by RJTabish - 10.02.2019, 16:26
Re: streaming music problem - by lautaro97 - 10.02.2019, 17:04
Re: streaming music problem - by TheToretto - 10.02.2019, 19:39
Re: streaming music problem - by lautaro97 - 10.02.2019, 23:56
Re: streaming music problem - by TheToretto - 11.02.2019, 05:57

Forum Jump:


Users browsing this thread: 1 Guest(s)