Raised This Month: $ Target: $400
 0% 

Not Precaching


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-17-2012 , 15:05   Not Precaching
Reply With Quote #1

I read it here: http://forums.alliedmods.net/showthread.php?t=136682
But its not working,Any changes to do?

PHP Code:
#include <amxmodx>
#include <amxmisc>

new const gszSound[] = "sheep.wav";  

public 
plugin_precache()
{
    
precache_soundgszSound )
}  

public 
plugin_init()
{
    
register_plugin("Testing""1,0""Waleed")
    
register_clcmd("say /mega""cmd_me")
}
public 
cmd_me(id)
{
            
client_cmd(id"sheep.wav")
            

__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-17-2012 , 15:08   Re: Not Precaching
Reply With Quote #2

What is not working? The precaching or the playing of the sound.

If it is not precaching, then the file doesn't exist in the sound folder

If the sound isn't playing, than that is because you are not telling it to play.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-17-2012 , 15:11   Re: Not Precaching
Reply With Quote #3

File is a sheep.wav,Its a basic sound file that come with CounterStrike
The sound is not playing
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-17-2012 , 15:13   Re: Not Precaching
Reply With Quote #4

Quote:
Originally Posted by YamiKaitou View Post
than that is because you are not telling it to play.
Use "spk sheep.wav"
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-17-2012 , 15:18   Re: Not Precaching
Reply With Quote #5

Unknown symbol (spk) error
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-17-2012 , 15:21   Re: Not Precaching
Reply With Quote #6

"spk" is a console command. I told you in the other topic you have to put it before the sound file name.
Backstabnoob is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-17-2012 , 15:22   Re: Not Precaching
Reply With Quote #7

Can you please edit my code to show me,I cannot understand......
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-17-2012 , 15:23   Re: Not Precaching
Reply With Quote #8

This is scripting help, post in suggestions/requests if you want someone to just give you a working code.
Try to use your head.
Backstabnoob is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2012 , 15:27   Re: Not Precaching
Reply With Quote #9

Quote:
Originally Posted by Waleed View Post
Can you please edit my code to show me,I cannot understand......
If you can't understand Yami's post then you should stop coding now.
__________________
fysiks is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-17-2012 , 15:29   Re: Not Precaching
Reply With Quote #10

http://forums.alliedmods.net/showthread.php?t=26363

If you don't know how to explain,Then you should probably don't say anything.
In above link,In 7th point,It is written to provide detail about error,

By the way I am not requesting,I am sharing my problem according to this thread,If you know then tell me.......
Or don't say anything,Sorry!
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
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 06:13.


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