Hi! and i am having a problem with lesson 8
-
- Posts: 2
- Joined: July 5th, 2012, 4:23 pm
Hi! and i am having a problem with lesson 8
Hi everyone i am new here and honestly im new at programming in general! but i love chili and these tutorials so far. basically my reason for posting is a problem i ran into in lesson 8. when he explains how to incorporate draw reticles so you dont have to make a set of pixels every time i run into an error. i made the Game::DrawReticle in the game.h file but when i put in the game.cpp file right where he explained to i get an error that says "Error: member function "Game::DrawReticle" may not be redeclared outside its class" any tips on what i did wrong? i dont have my code because it is all messed up at the moment because ive been trying to fix it. Thank You!!!!
Re: Hi! and i am having a problem with lesson 8
I hope you didn't literally write "Game::DrawReticle" to Game.h
In case you did it correctly, I suspect you put a ";" at the end of the "void Game::DrawReticle(*variables*); {}" which you shouldn't, instead just "void Game::DrawReticle(*variables*) {}"
But read the "READ THIS FIRST!" post, with what font and color does that post need to be written that people read it?
In case you did it correctly, I suspect you put a ";" at the end of the "void Game::DrawReticle(*variables*); {}" which you shouldn't, instead just "void Game::DrawReticle(*variables*) {}"
But read the "READ THIS FIRST!" post, with what font and color does that post need to be written that people read it?
ʕ •ᴥ•ʔ
-
- Posts: 2
- Joined: July 5th, 2012, 4:23 pm
Re: Hi! and i am having a problem with lesson 8
yeah i literally wrote that exactly.... haha sorry im completely new at this. but this fixed the problem! thank you for the fast reply it was much appreciated! i never realized how much a semi colon could mess things up.... but yes i read the beginning of the read this first but not all of it and i have already read over it again. thank you LuX!
Re: Hi! and i am having a problem with lesson 8
semicolons will get you every time just missing one will mess everything up
What you call a bug...I call a new feature!
Re: Hi! and i am having a problem with lesson 8
I can help you, do you still need help?
Re: Hi! and i am having a problem with lesson 8
oh ok!chili wrote:I think this one's been solved ocunder.