Raised This Month: $ Target: $400
 0% 

[HELP] Play .waw file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TudorLaLeagane
Junior Member
Join Date: Mar 2018
Old 12-25-2018 , 18:18   [HELP] Play .waw file
Reply With Quote #1

Hi! I just want to play a .waw file.

Here is part of my code:

Code:
new SoundNames[SoundNR][] =
{
	"Yes",
	"May The Force Be With You",
	"Helloo Babee",
	"The One and Only"
}
new SoundNamesID[SoundNR][] =
{
	"yes.waw",
	"FORCE.WAW",
	"HIBABE.WAW",
	"THEONE.WAW"
}
and

Code:
	new Name[33]
	get_user_name(id,Name,charsmax(Name))
	if(SoundID[id][item] == 1)
	{
		chat_color(id,"!y[!gSOUNDS!y]!g Ai ales !team%s !gsunetul va fi aplicat!",SoundNames[item])
		new sBuffer[128]
		format(sBuffer,127,"^"%s^"",SoundNamesID[item])
		emit_sound(id,CHAN_AUTO,sBuffer,VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
		//client_cmd( 0, "spk ^"%s^"", SoundNamesID[item] );
		HasSound[id] = 1
		format(HSoundID[id],31,"%s",SoundNamesID[item])
		chat_color(0,"!y[!gSOUNDs!y]!g Jucatorul !team%s !ga ales sunetul !team%s!g!",Name,SoundNames[item])
	}
It doesn't want to play in any way possible...

EDIT: PRECACHE
Code:
precache_sound("FORCE.WAW")
	precache_sound("HIBABE.WAW")
	precache_sound("THEONE.WAW")
	precache_sound("yes.waw")

Last edited by TudorLaLeagane; 12-25-2018 at 18:19.
TudorLaLeagane is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode