Raised This Month: $ Target: $400
 0% 

Song Name HELP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MercedeSx7
Senior Member
Join Date: Feb 2012
Location: Serbia
Old 08-20-2012 , 16:31   Song Name HELP
Reply With Quote #1

PHP Code:
#include < amxmodx >

public plugin_precache( )
{
    if( 
equalsound"win1.mp3" ) )
    {
        
client_print0print_chat"[Song Name] Mohombi - Bumpy Ride." )
        
formatsoundcharsmaxsound ), "sound/%s"sound )
        
precache_genericsound )
    }

I have errors, can someone fix them?
Thanks.

Last edited by MercedeSx7; 08-20-2012 at 16:52.
MercedeSx7 is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-20-2012 , 16:32   Re: I need help.
Reply With Quote #2

and what might, pre tell, would those errors be?

P.S. There are no clients to print to in plugin_precache So take out the client_print.
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 08-20-2012 at 16:33.
Liverwiz is offline
MercedeSx7
Senior Member
Join Date: Feb 2012
Location: Serbia
Old 08-20-2012 , 16:34   Re: I need help.
Reply With Quote #3

If your looking for errors ( i didnt understad you )

PHP Code:
/tmp/textqEBdJ9.sma(5) : error 017undefined symbol "sound"
/tmp/textqEBdJ9.sma(8) : error 017undefined symbol "sound"
/tmp/textqEBdJ9.sma(8) : error 072"sizeof" operator is invalid on "function" symbols
/tmp/textqEBdJ9.sma(8) : error 029invalid expressionassumed zero
/tmp/textqEBdJ9.sma(8) : fatal error 107too many error messages on one line 
MercedeSx7 is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-20-2012 , 16:36   Re: I need help.
Reply With Quote #4

that's rather straight forward....sound needs to be a string.

new sound[32]
Then you need to put something in sound.

Show plugin_init as well.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
MercedeSx7
Senior Member
Join Date: Feb 2012
Location: Serbia
Old 08-20-2012 , 16:42   Re: I need help.
Reply With Quote #5

PHP Code:
#include < amxmodx > 

new const PLUGIN[ ] = "Song Name";
new const 
VERSION[ ] = "1.0";
new const 
AUTHOR[ ] = "MercedeS";

public 
plugin_init( )
{
    
register_pluginPLUGINVERSIONAUTHOR );
}

public 
plugin_precache( ) 

    if( 
equalsound"win1.mp3" ) ) 
    { 
        
client_print0print_chat"[Song Name] Mohombi - Bumpy Ride." );
        new 
sound32 ];
        
formatsoundcharsmaxsound ), "sound/%s"sound );
        
precache_genericsound ); 
    } 

PHP Code:
/tmp/textQ6vMYP.sma(14) : error 017undefined symbol "sound" 
MercedeSx7 is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 08-20-2012 , 16:48   Re: I need help.
Reply With Quote #6

What you want to do exactly ?
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
MercedeSx7
Senior Member
Join Date: Feb 2012
Location: Serbia
Old 08-20-2012 , 16:50   Re: I need help.
Reply With Quote #7

I want, when a sound plays like win1.mp3 it says is song name, i fixed it i will see now if it works.
MercedeSx7 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-20-2012 , 16:50   Re: I need help.
Reply With Quote #8

Every thread creators need help in this section, please change your title.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-20-2012 , 16:51   Re: I need help.
Reply With Quote #9

Quote:
Originally Posted by lucas_7_94 View Post
What you want to do exactly ?
Yeah.....you're missing a lot of core things here. What do you expect sound to be? a cvar? or a magical dragon?


EDIT:
Quote:
Originally Posted by MercedeSx7 View Post
I want, when a sound plays like win1.mp3 it says is song name, i fixed it i will see now if it works.
What kind of sound? different sounds get caught different ways. Is this a song played by a mod? a map ambiance? and does this play when you fart?
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 08-20-2012 at 16:54.
Liverwiz is offline
MercedeSx7
Senior Member
Join Date: Feb 2012
Location: Serbia
Old 08-20-2012 , 16:54   Re: Song Name HELP
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
Every thread creators need help in this section, please change your title.
done

Quote:
Originally Posted by Liverwiz View Post
Yeah.....you're missing a lot of core things here. What do you expect sound to be? a cvar? or a magical dragon?
->
Quote:
Originally Posted by MercedeSx7 View Post
I want, when a sound plays like win1.mp3 it says is song name, i fixed it i will see now if it works.

Last edited by MercedeSx7; 08-20-2012 at 16:54.
MercedeSx7 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 05:44.


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