#1

hello i got audio: clubmusic[playerid] = Audio_PlayStreamed(playerid, "http://solidfiles.com/d/da1f/download/");

basically i want this audio to play on gamemdoeini, but in a way that no one can hear it, then when you enter a building "/enter" i want a function to play this for players that are in, so everyone can hear the same tune (this is 1h long with lots of tunes) and when you leave and come to the club the tunes still carry on going insted of starting again
Reply
#2

this is my idea:
top:
pawn Код:
new clubmusic[MAX_PLAYERS];
gamemodein:
pawn Код:
clubmusic = Audio_PlayStreamed("http://solidfiles.com/d/da1f/download/");
    Audio_SetVolume(clubmusic, 0);
teleport: (/enter)
pawn Код:
Audio_SetVolume(playerid, clubmusic[playerid], 100);
teleport: (/exit)
pawn Код:
Audio_SetVolume(playerid, clubmusic[playerid], 0);
but i get those errors: (they are from the gamemodeinit lines (2))
Код:
error 035: argument type mismatch (argument 1)
error 033: array must be indexed (variable "clubmusic")
error 035: argument type mismatch (argument 1)
Reply
#3

Should'nt that be ?

OnGameModeInit()

pawn Код:
clubmusic[playerid] = Audio_PlayStreamed("http://solidfiles.com/d/da1f/download/");
    Audio_SetVolume(clubmusic[playerid], 0);
Reply
#4

but you dont get playerid on gamemodeinit i think, and i want this to keep playing throw on its own even when no one is on the server so the music plays for server not playerid and the volume for playerid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)