Unknow misterious stack error...
Hey, guys... I have been wondering for lot of time about this, but I couldn't find the reason. The problem is one goddamn annoying stack error (run time error 3). The code:
PHP Code:
Code:
L 07/21/2014 - 22:01:24: Start of error session. |
Re: Unknow misterious stack error...
Why are you setting player money in such way? Just use cs_set_user_money(), there is nothing wrong with it. All that "Money" message stuff is unnecessary. Not sure, but that may be causing crashes.
And you should use min() instead of clamp() in this situation, it is more suitable. |
Re: Unknow misterious stack error...
I agree with KliPPy
Also, you are not checking if attacker is a valid player |
Re: Unknow misterious stack error...
Well, firstly (of course) I tried with cs_set_user_money. But, the money HUD is f*ckin up and shows some random values?! And I kindly saw this (and stole it) from Exolent (Kill Money plugin). That's all.
Btw, it was about to remove the original giving of money on kill, that's why I used that way. EDIT: Btw (again), this code is now overflowing me :D PHP Code:
|
| All times are GMT -4. The time now is 13:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.