Page 1 of 1

someone help me

PostPosted: Fri Sep 29, 2006 5:06 pm
by Puncharger
I thought I could start c++ since mailas was helping me on aim but hes not responding, I keep getting errors:
  Code:
   
Background = load("Bckground.png");

    Color EasyColor = RGB(0, 0, 0);
    Color MediumColor = RGB(0, 0, 0);
    Color HardColor = RGB(0, 0, 0);
   
    int OnStartGameMenu =
    int OnDifficultyMenu = 0
    extern int DifficultySetting

   

Why isnt this working! SOMEONE HELP ME!!!!!!!

PostPosted: Fri Sep 29, 2006 5:10 pm
by Mailas
lol sry my aim is laggy, okay heres what u do:
For the background, i told you its Background, you had it as Bckground.
Next,
int OnStartGameMenu =
int OnDifficultyMenu = 0
extern int DifficultySetting
they all need ; (semicolons)
So it would go like this:
int OnStartGameMenu =;
int OnDifficultyMenu = 0;
extern int DifficultySetting;

But on the first part, there is nothing assigned:
int OnStartGameMenu = 1;
int OnDifficultyMenu = 0;
extern int DifficultySetting;
Change it to 1 because of the syntax.
Heres the entire code:
Background = load("Background.png");

Color EasyColor = RGB(0, 0, 0);
Color MediumColor = RGB(0, 0, 0);
Color HardColor = RGB(0, 0, 0);

int OnStartGameMenu = 1;
int OnDifficultyMenu = 0;
extern int DifficultySetting;

Hope that helped.

PostPosted: Fri Sep 29, 2006 5:14 pm
by Puncharger
its still giving me one error, it sais its on the int OnStartGameMenu

PostPosted: Fri Sep 29, 2006 5:15 pm
by Mailas
Oh yea set it to 0 :lol:

PostPosted: Fri Sep 29, 2006 5:21 pm
by Puncharger
yes its working thanks mailas!

PostPosted: Fri Sep 29, 2006 5:31 pm
by Mailas
np :wink:

PostPosted: Fri Sep 29, 2006 5:38 pm
by .Vault
lol.. a little help on random stuff dont kill anybody.

PostPosted: Fri Sep 29, 2006 5:42 pm
by Mailas
umm..il keep that in mind..i think.