Jump to content

Home

Simple Problem.


-=*Raz0r*=-

Recommended Posts

Hey again,

 

I'm stuck here...

 

I've taken off the charge properties for the disruptor by having charge = qfalse; blah blah.

I also put the maxCharge etc to 0

 

So now, in g_weapon.c

 

WAS
	count = ( 100 ) / DISRUPTOR_CHARGE_UNIT;

NOW
	count = ( 0 ) / DISRUPTOR_CHARGE_UNIT;//100

 

When i compile, it says:

.\g_weapon.c(676) : error C2124: divide or mod by zero

And points to the line which i showed the code for.

 

 

Any help?

Link to comment
Share on other sites

What was the highest level of math you've ever taken... You cannot divide by zero brah (meaning 0 being on the top/first part of division sign)

 

lol dood, divide by zero means zero on bottom of division sign xD

which means that your #define for DISRUPTOR_CHARGE_UNIT is probably zero.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...