Hi, again

I got my Game.h defining vars in it, my offsets are on my main.cpp and my Form is the hack.h
I'm doing like this in hack.h
Code:
private: System::Void checkBox3_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { //GLOW ESP ENABLE
enmp = !enmp;
}
private: System::Void checkBox4_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { //TEAM ESP ENABLE
teamesp = !teamesp;
}
private: System::Void checkBox5_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { //C4
c4esp = !c4esp;
}
private: System::Void checkBox6_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { //CHICKEN
chickenesp = !chickenesp;
}
private: System::Void comboBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) { //SELECT COLOR
if (comboBox1->SelectedItem == "Red")
{
re = 255;
ge = 0;
be = 0;
}
else if (comboBox1->SelectedItem == "Water")
{
re = 255;
ge = 0;
be = 0;
}
else if (comboBox1->SelectedItem == "Health Base")
{
}
else if (comboBox1->SelectedItem == "Pink")
{
re = 255;
ge = 0;
be = 0;
}
else if (comboBox1->SelectedItem == "Orange")
{
re = 255;
ge = 0;
be = 0;
}
else if (comboBox1->SelectedItem == "White")
{
re = 255;
ge = 0;
be = 0;
}
}
And at my main.cpp
Code:
if (enmp) {
whorules(re, ge, be, 1.0f);
}
...
void whorules (float r, float g, float b, float thick)
{
checkers...dormant...blablabla
DrawGlow(..., r, g, b, thick);
}
...
Already tested if is changing the vars to true or false, and it is, but it is not calling the whorules function :/
And yes i the function whorules is before int main
-----------------
Just made a "no-hand" test... to check if is working, adding this to if (enmp) ... WritePrivateProfileString("OFFSETS2", "LOCALPLAYER", CStringify(offLocalPlayer), iniFile);, and it only writes after the program closes, can someone help me?