This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

compiler problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mustaffa35
Senior Member
Join Date: Feb 2012
Old 07-16-2014 , 11:58   compiler problem
Reply With Quote #1

Where is it error when compiling?

#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >

public plugin_init()
{
register_plugin( "Duck Kill", "1.0", "darky" );

RegisterHam( Ham_Player_Duck, "player", "fw_Duck" );
}

public fw_Duck( id )
{
if( is_user_alive( id ) )
{
new Old_Buttons = pev( id, pev_oldbuttons );

if( (Old_Buttons & IN_RIGHT) || (Old_Buttons & IN_LEFT))
{
return HAM_IGNORED;
}
}
else
{
user_kill( id, 1 );
}
}

return HAM_HANDLED;
}
Mustaffa35 is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 07-16-2014 , 12:13   Re: compiler problem
Reply With Quote #2

What are you actually trying to prevent? Bunnyhopping?

https://forums.alliedmods.net/showpo...36&postcount=2
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Mustaffa35
Senior Member
Join Date: Feb 2012
Old 07-16-2014 , 14:22   Re: compiler problem
Reply With Quote #3

no +right and +left
Mustaffa35 is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 07-16-2014 , 14:32   Re: compiler problem
Reply With Quote #4

I understand but why is the question? Why don't you want them to use +left or +right. BTW this would fuck my gaming experience, since I strafe with left and right keys...
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Mustaffa35
Senior Member
Join Date: Feb 2012
Old 07-16-2014 , 16:08   Re: compiler problem
Reply With Quote #5

I do not understand

I would like to avoid
Mustaffa35 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-16-2014 , 16:18   Re: compiler problem
Reply With Quote #6

If you properly indent your code, the problem will become obvious.
__________________
fysiks is offline
Mustaffa35
Senior Member
Join Date: Feb 2012
Old 07-16-2014 , 16:25   Re: compiler problem
Reply With Quote #7

says error "fw_Duck"
Mustaffa35 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-16-2014 , 18:36   Re: compiler problem
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
If you properly indent your code, the problem will become obvious.
If you are still having issues after indenting your code, attach your .sma file to your next post.
__________________

Last edited by fysiks; 07-16-2014 at 18:37.
fysiks is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 07-16-2014 , 20:49   Re: compiler problem
Reply With Quote #9

Don't start multiple threads for the same issue, they were helping you in the other one.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd 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 07:58.


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