Bad Load - I can't see the reason
I can't figure out why I'm getting a bad load. It's probably a small trivial mistake I overlooked but I've gone over everything many times.
Code:
|
Quote:
|
Re: Bad Load - I can't see the reason
The main reason I think it fails to load is because you are trying to assign money to players that don't exist, and most importantly, you are doing it as soon as the plugin is initialized, and there will be 0 players in the server at that point..
You see, you are trying to give money to every player every 1/2 second, but you aren't checking if the player even exists!! I hope you understand what I mean.. Now, I am guessing that you want to give players money every time they spawn, is this correct?? You could just hook the ReseyHUD event, and then give players money there.. like: Code:
Maybe something like that?? |
Would it really cause a bad load by trying to give money to players that don't exist, or simply runtime errors? Make sure that the cstrike module is enabled as well.
|
Actually, I think you're right Avalanche, that possibility slipped my mind..
But either way, his method was a bad idea, I just assume (:() people have the modules working before trying to code with them.. So when ya gonna move outta your cardboard box? :P :D |
Actually, the idea here is to give a player just a few $ every half second, not on respawn. I already wrote a plugin for that.
Thanks for reminding me to check if they're alive :oops: Still, I wouldn't think that would cause a bad load. [Edit]I figured it out. There was a small typo in the cs module in modules.ini. Thanks av.[/Edit] |
| All times are GMT -4. The time now is 16:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.