Strats Posted May 1, 2009 Posted May 1, 2009 Re: [V2] New Small Accuracy Mod [V2] This is great but small problem. New users get this message on their header : Warning: Division by zero in /home/wrestlin/public_html/index.php on line 4 Is there a way to hide it? Quote
Zytraw Posted May 3, 2009 Author Posted May 3, 2009 Re: [V2] New Small Accuracy Mod [V2] yes it'll soon be fixed give me a few minutes today or another day as im busy on a few other codes for a few other people. Quote
Danny696 Posted May 3, 2009 Posted May 3, 2009 Re: [V2] New Small Accuracy Mod [V2] easy fix for this use the first formula which is You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. but take of the *100 bit so its: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Zytraw Posted May 3, 2009 Author Posted May 3, 2009 Re: [V2] New Small Accuracy Mod [V2] easy fix for this use the first formula which is You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. but take of the *100 bit so its: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Nice idea but it wont, to my knowledge, work out the overall percentage of accuracy, which i would like it to do. Quote
Zytraw Posted May 3, 2009 Author Posted May 3, 2009 Re: [V2] New Small Accuracy Mod [V2] This is great but small problem. New users get this message on their header : Warning: Division by zero in /home/wrestlin/public_html/index.php on line 4 Is there a way to hide it? The easiest thing i can think of doing is: NOTE: not tested, however, to my knowledge, should work ;) Replace the whole accuracy equation below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. With You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
tobatz Posted May 4, 2009 Posted May 4, 2009 Re: [V2] New Small Accuracy Mod [V2] Whats the formula, im confuzzled $acc= $ir['totalhits'] / ($ir['totalhits']+$ir['totalmisses']) *100 i got an error off: Parse error: syntax error, unexpected '}' in /home/darkstr1/public_html/index.php on line 8 you need to put a ; after $acc= $ir['totalhits'] / ($ir['totalhits']+$ir['totalmisses']) *100; Quote
Zytraw Posted May 5, 2009 Author Posted May 5, 2009 Re: [V2] New Small Accuracy Mod [V2] Thanks tobaz, Enjoy the mod everyone from everyones help!! Thanks Quote
gurpreet Posted May 14, 2009 Posted May 14, 2009 Re: [V2] New Small Accuracy Mod [V2] This is great but small problem. New users get this message on their header : Warning: Division by zero in /home/wrestlin/public_html/index.php on line 4 Is there a way to hide it? The easiest thing i can think of doing is: NOTE: not tested, however, to my knowledge, should work ;) Replace the whole accuracy equation below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. With You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This doesn't give a % Eg. 59% accuracy. Quote
Zytraw Posted May 27, 2009 Author Posted May 27, 2009 Re: [V2] New Small Accuracy Mod [V2] Have you included the bit at the top? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
gurpreet Posted May 27, 2009 Posted May 27, 2009 Re: [V2] New Small Accuracy Mod [V2] Have you included the bit at the top? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just throwing it out there...Probably won't work Quote
Zytraw Posted May 27, 2009 Author Posted May 27, 2009 Re: [V2] New Small Accuracy Mod [V2] The $acc is a calculate for the bit below, down abit in the script but nice idea might work. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.