Subtracting works, addition doesn't?

Started by
21 comments, last by Acoole 15 years ago
Okay... Didn't think that would actually work o.o, thanks!

But these two errors still remain:
Error 3 error C2065: 'script' : undeclared identifier c:\Users\Andrew Chinnadorai\Desktop\Source\ode\Game\Weapon.cpp 121
Error 4 error C2227: left of '->GetFloatData' must point to class/struct/union/generic type c:\Users\Andrew Chinnadorai\Desktop\Source\ode\Game\Weapon.cpp 121
Advertisement
You never pass script into the update function and you don't store it anywhere. You either need to pass it in as a parameter or create a m_script variable and set it to script in the constructor.
Thank you so much, for your patience and your help. The end result is a much better ammunition tracking system than I hoped for, now to finish off the reload system , add a timer, but I know how to do that :)

Thanks again for your help.

Best Regards,
~Andrew

This topic is closed to new replies.

Advertisement