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

Simple question about ham


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 12-11-2013 , 11:19   Simple question about ham
Reply With Quote #1

I somehow got irritated and that's why I am asking this.

By default, registering a forward with ham, is post right?

PHP Code:
RegisterHam(Ham:function, const EntityClass[], const Callback[], Post=0
So then, I could give these forwards these names:

PHP Code:
RegisterHam(Ham_Spawn"player""Player_Spawn_Pre"1)
RegisterHam(Ham_Spawn"player""Player_Spawn_Post"
Post happens after Pre. Still right I assume, lol.

But why does is_user_alive check on post return false while pre forward returns true?
Shouldn't it be the opposite or am I missing something?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-11-2013 , 11:29   Re: Simple question about ham
Reply With Quote #2

0 = Pre
1 = Post
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 12-11-2013 at 11:29.
YamiKaitou is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-11-2013 , 11:33   Re: Simple question about ham
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
0 = Pre
1 = Post
Why is it declared like that then?

PHP Code:
Post=
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-11-2013 , 11:36   Re: Simple question about ham
Reply With Quote #4

0 is also False. So the default is saying not to use post
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 06:37.


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