My problem is that i am getting issues like this on the game i am develping using 3rd party software however this time its not the software i believe. It seems to have happened without me really tampering with anything and it didnt happen before. Im not being hacked or anything cause i haven't even really officaly launched my site.
Warning: Division by zero in /home/fone321/public_html/game/lib.php on line 226
Warning: Division by zero in /home/fone321/public_html/game/lib.php on line 228
That is the message i get at http://moviestop.co.cc/game above my siteb4 i log in. Now again its got nuthing to do with the 3rd party stuff (i believe) i think its more to do with lotus being anoying recently but need clarification.
line 226
$stathp = ceil($userrow["currenthp"] / $userrow["maxhp"] * 100);
line 228
$stattp = ceil($userrow["currenttp"] / $userrow["maxtp"] * 100);
Im gona try to trackback any edits i amy have made to original code that could have done this but again. im sure its not the 3rd party code, and i am sure its the "/" causing the problem but want to hear more from smarter people at the forums... thanks
Edit:
Ummm.. besides bumping i think i traced everything i did and nothing except compression and decompression of that at other files.
could it have put the / there because of a flaw in the compression/decompression or something?
---
Here is the full chunk of code from 226 -228 can som1 come up with an edit to this that would make it shut up when it wants to divide by zero. by that i mean whatever the hell the zero is instead of dividing it will do nothing
$stathp = ceil($userrow["currenthp"] / $userrow["maxhp"] * 100);
if ($userrow["maxmp"] != 0) { $statmp = ceil($userrow["currentmp"] / $userrow["maxmp"] * 100); } else { $statmp = 0; }
$stattp = ceil($userrow["currenttp"] / $userrow["maxtp"] * 100);
Warning: Division by zero in /home/fone321/public_html/game/lib.php on line 226
Warning: Division by zero in /home/fone321/public_html/game/lib.php on line 228
That is the message i get at http://moviestop.co.cc/game above my siteb4 i log in. Now again its got nuthing to do with the 3rd party stuff (i believe) i think its more to do with lotus being anoying recently but need clarification.
line 226
$stathp = ceil($userrow["currenthp"] / $userrow["maxhp"] * 100);
line 228
$stattp = ceil($userrow["currenttp"] / $userrow["maxtp"] * 100);
Im gona try to trackback any edits i amy have made to original code that could have done this but again. im sure its not the 3rd party code, and i am sure its the "/" causing the problem but want to hear more from smarter people at the forums... thanks
Edit:
Ummm.. besides bumping i think i traced everything i did and nothing except compression and decompression of that at other files.
could it have put the / there because of a flaw in the compression/decompression or something?
---
Here is the full chunk of code from 226 -228 can som1 come up with an edit to this that would make it shut up when it wants to divide by zero. by that i mean whatever the hell the zero is instead of dividing it will do nothing
$stathp = ceil($userrow["currenthp"] / $userrow["maxhp"] * 100);
if ($userrow["maxmp"] != 0) { $statmp = ceil($userrow["currentmp"] / $userrow["maxmp"] * 100); } else { $statmp = 0; }
$stattp = ceil($userrow["currenttp"] / $userrow["maxtp"] * 100);
Last edited: