try as flames said
also with the flying off the edge thing, switch ur PTC's around and then u should be good to go (the values of PTC)Code:if(fly<0) if(GetAsyncKeyState(VK_SPACE)<0)//try &1 instead of <0 if u still have problems... { //ON PTC HERE } else { //OFF PTC HERE }