10.02.2019, 19:39
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; }