Raised This Month: $ Target: $400
 0% 

[SNIPPET] Block Keys


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 11-19-2012 , 11:04   Re: [SNIPPET] Block Keys
Reply With Quote #1

Quote:
Originally Posted by zipcore View Post
if(iInitialButtons != buttons)
return Plugin_Changed
else
return Plugin_Continue;
}[/PHP]
You have to remove "else" there
Despirator is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-19-2012 , 19:20   Re: [SNIPPET] Block Keys
Reply With Quote #2

Quote:
Originally Posted by Despirator View Post
You have to remove "else" there
Yeah, the wrong one was removed, you can only have one match on the command, so that should be if..elseif, but when checking the buttons they should be separate statements.
__________________
asherkin is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 11-19-2012 , 19:42   Re: [SNIPPET] Block Keys
Reply With Quote #3

Quote:
Originally Posted by asherkin View Post
Yeah, the wrong one was removed, you can only have one match on the command, so that should be if..elseif, but when checking the buttons they should be separate statements.
fail
zipcore 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 18:37.


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