HP Regeneration
2 Attachment(s)
HP Regeneration
Cvars (ConVars)
Credits Everyone in #sourcemod for their support. |
Re: HP Regeneration
SM provides a #define called MAXPLAYERS, I'd use that instead of creating your own.
You also used semicolons (Which I like!), so you should have "#pragma semicolon 1" at the top of your plugin Good job |
Re: HP Regeneration
Nice, I didn't include sourcemod, but it's still compiles, and it is working.
Updated the plugin. |
Re: HP Regeneration
Nice plugin. This will help lot's of plugin developers. (Like me :) )
By the way: What is a semicolon? |
Re: HP Regeneration
A semicolon is: ;
|
Re: HP Regeneration
Quote:
Gotta go through all my plugins and use MAXPLAYERS instead of my own define ... lol |
Re: HP Regeneration
Quote:
|
Re: HP Regeneration
Quote:
#pragma semicolon 1 forces you to use semi colons so if you think you're likely to forget in places then I wouldn't recommend it. Like when I'm playing around with ferrets plugins and I gets all these stupid compile errors on perfect code. Stupid semicolons. And using the core defined maxplayers only helps readability..if even that. It doesn't affect the compiled plugin in any way.. |
Re: HP Regeneration
If you're going to use semicolons, you should be consistant about it, so should have #pragma semicolon. Either use them or don't, don't half way it.
|
Re: HP Regeneration
Thanks for the plugin!!! I've been using it on my HL2DM server and noticed that it is giving a health point after the player dies (before respawn). Also here is an excerpt from my server log--it's throwing off these errors continuously. Any ideas?
Code:
L 07/27/2007 - 13:45:21: [SM] Plugin encountered error 8: Not enough space on the stack |
All times are GMT -4. The time now is 19:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.