About sound playing
#1

Hello guys.
How do i make random music playing on my server?
I did the following:
At the top of script:
pawn Код:
new RandomSound[][4] =
{
    {1097}, // Those are sound IDs
    {1183},
    {1185},
    {1187}
};
In "OnPlayerConnect":
pawn Код:
new rand = random(sizeof(RandomSound));
PlayerPlaySound(playerid, RandomSound[rand][3], 0.0, 0.0, 0.0);
But it doesn't work.

And by the way; How do i stop a playing sound?

Hope someone can help me. Thank you.
Reply


Messages In This Thread
About sound playing - by sim_sima - 10.05.2011, 14:52
Re: About sound playing - by Seven_of_Nine - 10.05.2011, 14:55
Re: About sound playing - by sim_sima - 10.05.2011, 15:01
Re: About sound playing - by sim_sima - 10.05.2011, 15:07
Re: About sound playing - by Seven_of_Nine - 10.05.2011, 15:22
Re: About sound playing - by sim_sima - 10.05.2011, 15:25
Re: About sound playing - by sim_sima - 10.05.2011, 15:33
Re: About sound playing - by sim_sima - 10.05.2011, 15:53
Re: About sound playing - by sim_sima - 10.05.2011, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)