Raised This Month: $ Target: $400
 0% 

loadsound problems


Post New Thread Reply   
 
Thread Tools Display Modes
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 10-14-2009 , 05:29   Re: loadsound problems
Reply With Quote #11

I deleted the whole loadsound script from amx_super and the precache part also.
Now it works like a charm.
Thanks for your help
drekes is offline
Send a message via MSN to drekes
varredor
New Member
Join Date: May 2012
Old 06-11-2012 , 22:34   Re: loadsound problems
Reply With Quote #12

Quote:
Originally Posted by bmann_420 View Post
if you get a "filed to transmit" = means its not int he misc folder. Besides you have to precache it.

Here is an example:
Code:
#include <amxmodx>
#define Maxsounds 5

new soundlist[Maxsounds][] = {"mysong1","mysong2","mysong3","mysong4","mysong5"}


public plugin_precache() {
	precache_sound("misc/mysong1.mp3")
	precache_sound("misc/mysong2.mp3")
	precache_sound("misc/mysong3.mp3")
	precache_sound("misc/mysong4.mp3")
	precache_sound("misc/mysong5.mp3")
	return PLUGIN_CONTINUE
}



public client_connect(id) {
	new i
	i = random_num(0,Maxsounds-1)
	client_cmd(id,"mp3 play sound/misc/%s",soundlist[i])
	return PLUGIN_CONTINUE
}
If you want to use your own, i would suggest disabeling the one int he super (via cvar) and use This one.
error compiler :s
varredor is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 06-12-2012 , 15:45   Re: loadsound problems
Reply With Quote #13

Quote:
Originally Posted by varredor View Post
error compiler :s
Compiles just fine.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Reply



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 03:38.


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