Attempting to fix Raptor Mod-Index Out of Bounds
Code causing errors:
PHP Code:
Quote:
New Issue: Okay, after some more debugging I've discovered another issue. PHP Code:
Quote:
|
Re: Attempting to fix Raptor Mod, Getting 'Divide' Error.
I don't know what is this 'raptorlife' var, may be you could link to the plugin.
Anyway you can try to replace : new raptorinvis = ((raptorreallife*100)/(raptorlife)); with new raptorinvis = ((raptorreallife*100)/( max(1, raptorlife) )); This would avoid dividing by 0 |
Re: Attempting to fix Raptor Mod, Getting 'Divide' Error.
Original plugin:
http://forums.alliedmods.net/showthr...ght=raptor+mod I'll give your fix a shot and post back if it's still giving me errors. Thanks for the help so far :o |
Re: Attempting to fix Raptor Mod, Getting 'Divide' Error.
lol this is a buggy plugin, but if u can fix this, please give me the sma. i have this running on ma server.
|
Re: Attempting to fix Raptor Mod, New Error after fixing 'Divide'.
One:
Uhm.. Let's just say it's 'running' but it's not.. quite the same anymore. I've changed quite a lot of things. And Connor your fix worked perfectly. The only issue is another error has come up. I've edited the main post with the error'd code and debug log. |
Re: Attempting to fix Raptor Mod, New Error after fixing 'Divide'.
hmmm :mrgreen:
Offtopic : would u release the code or not? i mean after this is finished?i tried 1 time to fix this but i found there only bugs & i tried 2 4get it. http://forums.alliedmods.net/showthread.php?t=85503 << first i had problems with the model & after this comes more & more & more bugs :mrgreen: |
Re: Attempting to fix Raptor Mod, New Error after fixing 'Divide'.
Well I'm working one step at a time. Debug and then decide what to do with it after it's completed. For now I don't plan on releasing it due to it not being close to the finished product of what I plan it to be.
|
Re: Attempting to fix Raptor Mod-Index Out of Bounds
PHP Code:
|
Re: Attempting to fix Raptor Mod-Index Out of Bounds
Thanks connor! I'll test it asap.
|
| All times are GMT -4. The time now is 08:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.