WTH is wrong in this 3 line code?
WTH is wrong here?
PHP Code:
PHP Code:
|
Re: WTH is wrong in this 3 line code?
> means more try only =
like this Code:
|
Re: WTH is wrong in this 3 line code?
I know what it means, I mean >= should be "greater than or equal to" but whatever, I tried "==" but it wont work :\ It prints when I get 2 frags whereas it should print on frag 1.
|
Re: WTH is wrong in this 3 line code?
The function retrieves the frags just before the frag update, i think.
Delay the check with set_task for 0.5 seconds |
Re: WTH is wrong in this 3 line code?
How are you hooking player's death?
|
Re: WTH is wrong in this 3 line code?
It's likely because of the way that the death is hooked. If you are using Ham_Killed as a pre-hook, you should try a post-hook. If that doesn't fix it, register the DeathMsg event.
|
Re: WTH is wrong in this 3 line code?
I am using DeathMsg event to check for player's death.
|
Re: WTH is wrong in this 3 line code?
Then, use Ham_Killed post or delay the check for about 0.5 seconds.
|
Re: WTH is wrong in this 3 line code?
Quote:
|
Re: WTH is wrong in this 3 line code?
Yes, adding delay solved it. Thanks :)
|
| All times are GMT -4. The time now is 23:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.