Well, the reason is your post isn't allowed here if you follow the section rules.
But well...
I hope you see yourself you are running to position 1,2, 3 which is probably thousands of yards away.Code:float x=1; .... WriteProcessMemory(&hproc,(LPVOID)(CTM_BASE+CTM_X),(LPCVOID)&x,sizeof(float),NULL); ...
Oh, and your offsets are wrong.