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
Subtracting works, addition doesn't?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement