Error C2065 with Allegro 5

Hello, i'm having a problem with my c++/allegro programming it's saying that playerkm is an undeclared indentifier.
I don't know what to do and I hope someone can help me.

Main Class(Graphics.cpp): http://pastebin.com/9j4Cy11R
Main Header(Graphics.h): http://pastebin.com/HMAq6Kcu
Player Header(Objects.h): http://pastebin.com/MWxc7Fpu

If anyone need more info then just say it.
> 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.
ne555, many thanks! I appreciate your help :D
Topic archived. No new replies allowed.