Problem while looking for EnemyTeamNumber.
Hey there.
I want to find out the teamnumber a specific player is in. It is the player my crosshair is aiming at.
I do understand how to get this information - at least i think so.
But there is problem i cannot solve..

This is why i posted this here. I will first show you some of the important code - then give you its output. I really dont know what i am doing wrong here, otherwise i would not post this.
Please give me a little help
The code to (what i think) read out the enemys team.
Code:
DWORD cLocalPlayer;
int Team;
ReadProcessMemory(handle, (PBYTE*)(client + SpielerBasis), &cLocalPlayer, sizeof(DWORD), NULL);
ReadProcessMemory(handle, (PBYTE*)(cLocalPlayer + chIDOff), &value, sizeof(int), NULL);
// To read out what i am aiming at.
ReadProcessMemory(handle, (PBYTE*)(client + entitiyBase) + ((value - 1) * entityLoopDistance), &EnemyBase, sizeof(int), NULL);
ReadProcessMemory(handle, (PBYTE*)(EnemyBase + teamOffset), &EnemyTeam, sizeof(int), NULL);
//To read out the players team i am aiming at.
cout << "|||||" << value << "--" << Team << "--" << EnemyTeam << "|||||";
//To output the values to help me while coding.
My own teamnumber is shown me right in output, and i think the enemys id (saved in "value") seems to be right, too.
But the output for "EnemyTeam" is always an integer with a value of 858993460. Somehow i don't know how to solve this...
Would you guys please help me out a bit
BTW, sorry for my english, i am from Germany :P
Regards,
Madretsma