Jump to content
MakeWebGames

Attacking


Jameoo

Recommended Posts

this just pops up ded randomly :(

Warning: Division by zero in /home/ufruh/public_html/attack.php on line 145

Warning: Division by zero in /home/ufruh/public_html/attack.php on line 146

39. Using your Knuckle Dusters you hit Solo doing 1 damage (549)

Warning: Division by zero in /home/ufruh/public_html/attack.php on line 200

Warning: Division by zero in /home/ufruh/public_html/attack.php on line 202

40. Solo tried to hit you but missed (400)

 

Can u help me plz i tryed to replace it with the backup and new 1 but it dont work

Link to comment
Share on other sites

  • 3 weeks later...

Re: Attacking

There was no need to reset...It's one of the users (or you) that was making

Line 145

$mydamage=(int) (($r1['weapon']*$youdata['strength']/($odata['guard']/1.5))*(rand(8000,12000)/10000));

 

Line 146

$hitratio=max(10,min(60*$ir['agility']/$odata['agility'],95));

 

Line 200

$dam=(int) (($enweps[$weptouse]['weapon']*$odata['strength']/($youdata['guard']/1.5))*(rand(8000,12000)/10000));

 

Line 202

$hitratio=max(10,min(60*$odata['agility']/$ir['agility'],95));

 

Chances are you and the other person had similar stats and weaponry (just a guess xD)

If you wish to disable these errors from showing up. Find in header.php

error_reporting(E_ALL);

And simply either delete it or stick these in front: //

EG

//error_reporting(E_ALL);
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...