-=*Raz0r*=- Posted December 2, 2006 Share Posted December 2, 2006 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 More sharing options...
dumbledore Posted December 2, 2006 Share Posted December 2, 2006 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 More sharing options...
razorace Posted December 2, 2006 Share Posted December 2, 2006 In addition, you could try just replacing the alt fire function calls with the primary fire function calls. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.