Error C2065 with Allegro 5
May 10, 2014 at 10:39am UTC
May 10, 2014 at 3:06pm UTC
> Error C2065
http://www.cplusplus.com/forum/articles/40071/#msg216270
In function ‘void ChangeGS(int&, int)’:
error: ‘playerkm’ was not declared in this scope
now look at that function
1 2 3 4 5 6 7 8 9 10 11
void ChangeGS(int &GS, int newGS)
{
if (GS == MainMenu){}
else if (GS == Game){}
GS = newGS;
if (GS == MainMenu){}
else if (GS == Game)
{
InitPlayer(playerkm);
}
}
¿what is `playerkm'? you can only refer to your arguments, variables that are created inside the function, and global variables.
May 10, 2014 at 4:22pm UTC
ne555, many thanks! I appreciate your help :D
Topic archived. No new replies allowed.