Raised This Month: $51 Target: $400
 12% 

Nade Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Destro
Junior Member
Join Date: Aug 2005
Location: MUC
Old 04-24-2006 , 14:45  
Reply With Quote #21

yeah it's me again
i tryed the last days to put a random in your script
but, well you will probably know what happens
i failed.

i tryed to put the code from the roundsound plugin to yours
from this
Code:
new g_szSoundFile[] = "misc/sound.wav"
to this
Code:
  new g_szSoundFile = random_num(0,2)

  switch(g_szSoundFile)
  {
    case 0: client_cmd(0,"spk misc/sound1")
    case 1: client_cmd(0,"spk misc/sound2")
    case 2: client_cmd(0,"spk misc/sound3")
  }
well, the compile also doesn't work.
can you help again *dogeyes*
__________________
81.92.166.123 - Deathmatchbude USH >>V6<<
AMXX 1.76b, Metamod 1.19p28, HLG 1.9.n10, SB 3.3, CSDM 1,7 (itemmode)
Maps: cs_assault, cs_italy, cs_militia, cs_office, cs_siege, de_aztec, de_cbble, de_dust, de_dust2, de_inferno, de_nuke, de_train and de_vertigo
more infos @ www.spassbude.info
Destro is offline
Send a message via ICQ to Destro
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-24-2006 , 16:27  
Reply With Quote #22

Code:
  switch(random_num(0,2))   {     case 0: client_cmd(0,"spk misc/sound1")     case 1: client_cmd(0,"spk misc/sound2")     case 2: client_cmd(0,"spk misc/sound3")   }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Destro
Junior Member
Join Date: Aug 2005
Location: MUC
Old 04-26-2006 , 14:17  
Reply With Quote #23

Code:
new g_szSoundFile[] = "random_num(0,2)"   switch(random_num(0,2))   {     case 0: client_cmd(0,"spk misc/sound1")     case 1: client_cmd(0,"spk misc/sound2")     case 2: client_cmd(0,"spk misc/sound3")   }
ok, i got this in the sma, and when i try to compile it,
comes this
Code:
//// nademessages.sma
// ...\amxmodx-1.71-base\addons\amxmodx\scripting\nademessages.sma(20) : error 010: invalid function or declaration
// ...\amxmodx-1.71-base\addons\amxmodx\scripting\nademessages.sma(22) : error 010: invalid function or declaration
// ...\amxmodx-1.71-base\addons\amxmodx\scripting\nademessages.sma(23) : error 010: invalid function or declaration
// ...\amxmodx-1.71-base\addons\amxmodx\scripting\nademessages.sma(24) : error 010: invalid function or declaration
//
// 4 Errors.
// Could not locate output file compiled\nademessages.amx (compile failed).
the errors refer the switch and the cases

?
__________________
81.92.166.123 - Deathmatchbude USH >>V6<<
AMXX 1.76b, Metamod 1.19p28, HLG 1.9.n10, SB 3.3, CSDM 1,7 (itemmode)
Maps: cs_assault, cs_italy, cs_militia, cs_office, cs_siege, de_aztec, de_cbble, de_dust, de_dust2, de_inferno, de_nuke, de_train and de_vertigo
more infos @ www.spassbude.info
Destro is offline
Send a message via ICQ to Destro
Krigi
New Member
Join Date: Sep 2006
Old 11-19-2006 , 13:21   Re: Nade Messages
Reply With Quote #24

I love your plugin but ..

1. I cant get the sound to work, it dosent download it.
2. I cant get the HUD message red, and in front of the screen.

Please help me, i really like the plugin .
Krigi is offline
SilentRunner007
Junior Member
Join Date: Oct 2005
Location: nj,usa
Old 03-06-2007 , 22:06   Re: Nade Messages
Reply With Quote #25

i had the same problem. sound was installed in the correct location but wouldnt download. i got it to work by modifying the code. truthfully this may not be the best way but it works.

i changed this
Code:
new g_szSoundFile[] = "misc/grenade.wav"

public plugin_precache() 
{
	if(file_exists(g_szSoundFile))
	{
		precache_sound(g_szSoundFile)
	}
}
to this
Code:
new g_szSoundFile[] = "misc/grenade.wav"

public plugin_precache()   {  
	precache_sound("misc/grenade.wav")    
	return PLUGIN_CONTINUE 
}
SilentRunner007 is offline
Send a message via ICQ to SilentRunner007 Send a message via MSN to SilentRunner007 Send a message via Yahoo to SilentRunner007
Bic*
Junior Member
Join Date: Nov 2008
Location: Tampa, Florida
Old 01-17-2009 , 11:47   Re: Nade Messages
Reply With Quote #26

I have the same problem: people can not download the sound... it is in the right folder for sure... I love this plugin and really want to get it working!

I used the advise from the message above... I tried to replace that part of the code in .sma file... but it still doesnt work...
__________________
Join Prolific Gaming at www.gamingcompass.com



Bic* is offline
nice boy
Junior Member
Join Date: Mar 2009
Old 07-17-2009 , 18:05   Re: Nade Messages
Reply With Quote #27

......same here i can see the msg but i can't download the sound , some answers ???
nice boy is offline
BustedRider
Senior Member
Join Date: Dec 2008
Location: Canada/QC
Old 10-07-2009 , 19:02   Re: Nade Messages
Reply With Quote #28

Same problem!
BustedRider is offline
BustedRider
Senior Member
Join Date: Dec 2008
Location: Canada/QC
Old 10-24-2009 , 22:00   Re: Nade Messages
Reply With Quote #29

Why sound doesnt play!?
__________________
BustedRider is offline
Old 09-05-2011, 05:28
johnnyvh
This message has been deleted by xPaw. Reason: Spam.
Youknow
Junior Member
Join Date: Oct 2011
Old 10-08-2011 , 08:26   Re: Nade Messages
Reply With Quote #30

How do i add this plugin ?
__________________

Youknow is offline
Old 10-08-2011, 08:27
gunsofnavarone
This message has been deleted by gunsofnavarone.
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 08:01.


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