How to call void functions (like shoot)
Posted: Tue Nov 04, 2008 1:23 pm
Hi all
I am wondering how to get this thing working. I have finished implementing a shoot function(void shoot()) but , when I try to use it in my code by just using 'shoot()' I get this error:
main.cpp(248) : error C2365: 'shoot' : redefinition; previous definition was 'data variable'
main.cpp(24) : see declaration of 'shoot'
line 248 is where the opening left bracket of shoot is, line 24 is where I call shoot(). What am I doing wrong? I have examined the demo and see nothing different between mine and theirs, except theirs works.
Thanks.
I am wondering how to get this thing working. I have finished implementing a shoot function(void shoot()) but , when I try to use it in my code by just using 'shoot()' I get this error:
main.cpp(248) : error C2365: 'shoot' : redefinition; previous definition was 'data variable'
main.cpp(24) : see declaration of 'shoot'
line 248 is where the opening left bracket of shoot is, line 24 is where I call shoot(). What am I doing wrong? I have examined the demo and see nothing different between mine and theirs, except theirs works.
Thanks.