Raised This Month: $ Target: $400
 0% 

randon_num?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 10-13-2006 , 16:12   randon_num?
Reply With Quote #1

How come that this aint working..?


Im trying to do this >>
Code:
} else if (iKill[killer] > 17) {      client_cmd(0,"play %s", kSound[random_num(0, 5)]) }

With this >>
Code:
new kSound[6][] = {     "GodLikeSound",     "RampageSound",     "DominatingSound",     "WickedSickSound",     "KillingSpreeSound",     "UnStoppableSound" }
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 10-13-2006 , 16:23   Re: randon_num?
Reply With Quote #2

because you have to specify also the filepath + file extension in your array
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 10-13-2006 , 16:30   Re: randon_num?
Reply With Quote #3

Well i already have..
Code:
new const WickedSickSound[] = "Announce/WhickedSick.wav" new const UnStoppableSound[] = "Announce/Unstoppable.wav" new const RampageSound[] = "Announce/Rampage.wav" new const KillingSpreeSound[] = "Announce/Killing_Spree.wav" new const GodLikeSound[] = "Announce/GodLike.wav" new const DominatingSound[] = "Announce/Dominating.wav"
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-13-2006 , 16:40   Re: randon_num?
Reply With Quote #4

Shouldnt they be
PHP Code:
"sound/Announce/**********.wav" 
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-13-2006 , 16:46   Re: randon_num?
Reply With Quote #5

Remove the Quotes (") in ksound.
__________________
EAT YOUR VEGGIES
Silencer123 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-13-2006 , 16:47   Re: randon_num?
Reply With Quote #6

Quote:
Originally Posted by SweatyBanana View Post
Shouldnt they be
PHP Code:
"sound/Announce/**********.wav" 
No. There's no client command "play", I think you want either "spk" or "mp3 play" (the latter of which will most likely not work due to the fact that it is a wav).
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 10-13-2006 , 17:26   Re: randon_num?
Reply With Quote #7

Quote:
Originally Posted by stigma View Post
Well i already have..
Code:
new const WickedSickSound[] = "Announce/WhickedSick.wav" new const UnStoppableSound[] = "Announce/Unstoppable.wav" new const RampageSound[] = "Announce/Rampage.wav" new const KillingSpreeSound[] = "Announce/Killing_Spree.wav" new const GodLikeSound[] = "Announce/GodLike.wav" new const DominatingSound[] = "Announce/Dominating.wav"
but not in kSound
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-13-2006 , 18:51   Re: randon_num?
Reply With Quote #8

its fixed...
[ --<-@ ] Black Rose is offline
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 04:53.


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