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

Whats Wrong? :D


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mix97mix
Member
Join Date: Sep 2011
Old 10-08-2011 , 14:35   Whats Wrong? :D
Reply With Quote #1

It compiles perfect but it dosent work o.O
Help please ;)


/*
FART
PRRRRRRRRRRRRRRRRRRRRRR xDD
*/

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Fart"
#define VERSION "1.0"
#define AUTHOR "mix97mix"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say /fart", "Fart")

register_clcmd("say_team /fart", "Fart")

}
/*Precaches
public plugin_precache()
{
precache_sound("farts/fart1.wav")
precache_sound("farts/fart2.wav")

return PLUGIN_CONTINUE
}
*/

/*Farting
public Fart()
{
case 0: client_cmd(0,"spk farts/fart1")
case 1: client_cmd(0,"spk farts/fart2")
}

return PLUGIN_HANDLED
}
*/




Last edited by mix97mix; 10-08-2011 at 14:55.
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-08-2011 , 14:59   Re: Whats Wrong? :D
Reply With Quote #2

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

And is wrecked plugin. Don't think about releasing it.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 10-08-2011 , 15:25   Re: Whats Wrong? :D
Reply With Quote #3

Quote:
Originally Posted by mix97mix View Post
It compiles perfect but it dosent work o.O
Help please ;)


/*
FART
PRRRRRRRRRRRRRRRRRRRRRR xDD
*/

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Fart"
#define VERSION "1.0"
#define AUTHOR "mix97mix"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say /fart", "Fart")

register_clcmd("say_team /fart", "Fart")

}
/*Precaches
public plugin_precache()
{
precache_sound("farts/fart1.wav")
precache_sound("farts/fart2.wav")

return PLUGIN_CONTINUE
}
*/

/*Farting
public Fart()
{
case 0: client_cmd(0,"spk farts/fart1")
case 1: client_cmd(0,"spk farts/fart2")
}

return PLUGIN_HANDLED
}
*/



Use php tags .
Why is it written case 0 , case 1 ? if no switch ?

Code:
public Fart()
{
    case 0: client_cmd(0,"spk farts/fart1")
        case 1: client_cmd(0,"spk farts/fart2")
}
-- >


Code:
public Fart( )
{
    switch( random_num( 0, 1 ) )
    {
        case 0: 
        {
            client_cmd(0,"spk farts/fart1")
        }
        case 1:
        {
            client_cmd(0,"spk farts/fart2")
        }
    }
}
This is how i think it should be ..
MyPc is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-08-2011 , 15:29   Re: Whats Wrong? :D
Reply With Quote #4

He didn't make this I bet. Wrecked probably did.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
mix97mix
Member
Join Date: Sep 2011
Old 10-08-2011 , 15:32   Re: Whats Wrong? :D
Reply With Quote #5

nope not working
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
MyPc
Senior Member
Join Date: Sep 2011
Old 10-08-2011 , 15:34   Re: Whats Wrong? :D
Reply With Quote #6

Quote:
Originally Posted by mix97mix View Post
nope not working
Were the files precached succesfully ?
If they were try typing in the console :
Code:
"spk farts/fart1"
If it doesn't work, try
Code:
"MP3Volume 5"
..
MyPc is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-08-2011 , 15:35   Re: Whats Wrong? :D
Reply With Quote #7

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

#define PLUGIN "Fart"
#define VERSION "1.0"
#define AUTHOR "mix97mix"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say /fart""Fart")
    
register_clcmd("say_team /fart""Fart")
}

public 
plugin_precache()
{
    
precache_sound("farts/fart1.wav")
    
precache_sound("farts/fart2.wav")

    return 
PLUGIN_CONTINUE
}

public 
Fart( )
{
    switch( 
random_num0) )
    {
        case 
0
        {
            
client_cmd(0,"spk farts/fart1")
        }
        case 
1:
        {
            
client_cmd(0,"spk farts/fart2")
        }
    }

Make sure you have all the sounds enabled.
If doesnt work try this

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

#define PLUGIN "Fart"
#define VERSION "1.0"
#define AUTHOR "mix97mix"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say /fart""Fart")
    
register_clcmd("say_team /fart""Fart")
}

public 
plugin_precache()
{
    
precache_sound("sound/farts/fart1.wav")
    
precache_sound("sound/farts/fart2.wav")

    return 
PLUGIN_CONTINUE
}

public 
Fart( )
{
    switch( 
random_num0) )
    {
        case 
0
        {
            
client_cmd(0,"spk farts/fart1")
        }
        case 
1:
        {
            
client_cmd(0,"spk farts/fart2")
        }
    }

__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]

Last edited by enjoi.; 10-08-2011 at 15:37.
enjoi. is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-08-2011 , 15:35   Re: Whats Wrong? :D
Reply With Quote #8

Sorry! Didn't see the post above.
But you code is bad too.
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Fart"
#define VERSION "1.0"
#define AUTHOR "mix97mix"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say /fart""Fart")
    
register_clcmd("say_team /fart""Fart")
}

public 
plugin_precache()
{
    
precache_sound("farts/fart1.wav")
    
precache_sound("farts/fart2.wav")

    return 
PLUGIN_CONTINUE
}

public 
Fart( )
{
    switch( 
random_num0) )
    {
        case 
0
        {
            
client_cmd(0,"spk farts/fart1")
        }
        case 
1:
        {
            
client_cmd(0,"spk farts/fart2")
        }
    }

Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
MyPc
Senior Member
Join Date: Sep 2011
Old 10-08-2011 , 15:36   Re: Whats Wrong? :D
Reply With Quote #9

Quote:
Originally Posted by enjoi. View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Fart"
#define VERSION "1.0"
#define AUTHOR "mix97mix"

public plugin_init() {
register_plugin(PLUGINVERSIONAUTHOR)

register_clcmd("say /fart""Fart")

register_clcmd("say_team /fart""Fart")

}
/*Precaches
public plugin_precache()
{
precache_sound("farts/fart1.wav")
precache_sound("farts/fart2.wav")

return PLUGIN_CONTINUE
}
*/

/*Farting 
public Fart( )
{
    switch( random_num( 0, 1 ) )
    {
        case 0: 
        {
            client_cmd(0,"spk farts/fart1")
        }
        case 1:
        {
            client_cmd(0,"spk farts/fart2")
        }
    }
}

return PLUGIN_HANDLED
}
*/ 
Make sure you have all the sounds enabled.
If doesnt work try this

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Fart" #define VERSION "1.0" #define AUTHOR "mix97mix" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /fart", "Fart") register_clcmd("say_team /fart", "Fart") } /*Precaches public plugin_precache() { precache_sound("sound/farts/fart1.wav") precache_sound("sound/farts/fart2.wav") return PLUGIN_CONTINUE } */ /*Farting public Fart( ) { switch( random_num( 0, 1 ) ) { case 0: { client_cmd(0,"spk farts/fart1") } case 1: { client_cmd(0,"spk farts/fart2") } } } return PLUGIN_HANDLED } */
Why did you made most of the lines as a comment ?
MyPc is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-08-2011 , 15:37   Re: Whats Wrong? :D
Reply With Quote #10

? that was pawn. lol ill fix it
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
Reply


Thread Tools
Display Modes

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 17:41.


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