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

True or False


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-30-2017 , 08:36   True or False
Reply With Quote #1

Is this the same?
PHP Code:
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage"
PHP Code:
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage, 1"
Krtola is offline
Send a message via Skype™ to Krtola
wickedd
Veteran Member
Join Date: Nov 2009
Old 04-30-2017 , 10:08   Re: True or False
Reply With Quote #2

False

#1 is pre
#2 is post
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-30-2017 , 10:16   Re: True or False
Reply With Quote #3

Simply consult the API - https://www.amxmodx.org/api/hamsandwich/RegisterHam

PHP Code:
native HamHook:RegisterHam(Ham:function, const EntityClass[], const Callback[], Post=0bool:specialbot false); 
As you can see, the default value for Post is 0, which means if you don't specify a value, it will be 0 (pre).
__________________

Last edited by OciXCrom; 04-30-2017 at 10:16.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-30-2017 , 15:04   Re: True or False
Reply With Quote #4

PHP Code:
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage"
this actually means 0 (pre).
Tnx.
Krtola is offline
Send a message via Skype™ to Krtola
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-30-2017 , 19:39   Re: True or False
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Simply consult the API - https://www.amxmodx.org/api/hamsandwich/RegisterHam

PHP Code:
native HamHook:RegisterHam(Ham:function, const EntityClass[], const Callback[], Post=0bool:specialbot false); 
As you can see, the default value for Post is 0, which means if you don't specify a value, it will be 0 (pre).
Typo in your post (no pun intended), you should fix it so you do not confuse him (or anyone).
__________________

Last edited by Bugsy; 04-30-2017 at 20:25.
Bugsy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-30-2017 , 20:02   Re: True or False
Reply With Quote #6

Hm, where?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-30-2017 , 20:18   Re: True or False
Reply With Quote #7

Quote:
As you can see, the default value for Post is 0
Nevermind, looking at the function I see why you explained it this way since its written as 'Post=0'. I was thinking along the lines of something like the below. I didn't look at the link prior to posting.

PHP Code:
enum PrePost
{
    
Pre,
    
Post
}

native HamHook:RegisterHam(Ham:function, const EntityClass[], const Callback[], PrePost:When Pre bool:specialbot false); 
In this case, the default would be pre/0. But yea, you can disregard as I see why you explained it the way you did.
__________________

Last edited by Bugsy; 04-30-2017 at 20:24.
Bugsy is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-04-2017 , 07:45   Re: True or False
Reply With Quote #8

1 its pre ? I think no.
__________________








CrazY. is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-04-2017 , 08:03   Re: True or False
Reply With Quote #9

Quote:
Originally Posted by CrazY. View Post
1 its pre ? I think no.
1 is post and 0 pre

Post=false thats mean its pre when its true then its mean post
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-04-2017 , 08:09   Re: True or False
Reply With Quote #10

Quote:
Originally Posted by wickedd View Post
False

#1 is pre
#2 is post
__________________








CrazY. 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 00:14.


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