how do i fix this

Write your question here.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
  // dllmain.cpp : Defines the entry point for the DLL application.
#define _CRT_SECURE_NO_WARNINGS
#define getline





#include "stdafx.h"
#include "iostream"
#include "Main Menu.h"

using namespace std;

void ConsoleBypass() {
	DWORD b;
	VirtualProtect((PVOID)&FreeConsole, 1, PAGE_EXECUTE_READWRITE, &b);
	*(BYTE*)(&FreeConsole) = (0xC3);
}
	void Console(const char * Title) {
		ConsoleBypass();
		AllocConsole();
		SetConsoleTitleA(Title);

		freopen("CONOUTS", "W", stdout);
		freopen("CONOUTS", "r", stdout);
		HWND ConsoleHandleWindow = GetConsoleWindow();
		::SetWindowPos(ConsoleHandleWindow, HWND_TOPMOST, 0, 0, 0, 0, SWP_DRAWFRAME | SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
		::ShowWindow(ConsoleHandleWindow, SW_NORMAL);
	}

	void setcolor(int color) {
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), color);
	}

	void success() {
		string script;
		setcolor(2);
		cout << "OK" << endl;
		setcolor(15);
		cout << "Welcome,";
		setcolor(14);
		cout << "MEGAMIX V1";
		setcolor(15);
		cout << "Type Lua Scripts Below" << endl;

		do {
			cout << ">> ";
			getline(cin, script);
			script.c_str();
		} while (true);
	}

//Lua Adresses
#define GF  DWORD  GetField =
#define ST DWORD Settop =
#define PS DWORD Pushstring =


#define  OUTPUT cout <<

DWORD rblxbase = (DWORD)GetModuleHandle(L"RobloxPlayerBeta.exe");

namespace RBLX {
	DWORD Workspace;
	DWORD Datamodel;
	DWORD Lighting;
	DWORD Players;
	DWORD Camera;
	DWORD Head;
	DWORD State;
	DWORD Lua_State;
	DWORD RBLX_GAME;
	DWORD RBLX_PCALL;
	DWORD RBLX_base;

#define RBLX_GETFIELD(RBLX_BASE),+(GF);
#define RBLX_SETTOP(RBLX_BASE),+(ST);
#define RBLX_PUSHSTRING(RBLX_GAME),(PS);
#define RBLX_PCALL;
#define RBLX_WORKSPACE;
#define RBLX_DATAMODEL;
#define RBLX_PLAYERS;
#define RBLX_CAMERA;
#define RBLX_HEAD;
#define RBLX_lSTATE(lua_State), +(RBLXState);
}


//attach to program
BOOL WINAPI DllMain(HINSTANCE Dll, DWORD reason, LPVOID Useless) {
	if (reason == DLL_PROCESS_ATTACH) {
		DisableThreadLibraryCalls(Dll);
		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
		return TRUE;
	}
}
pls help me fix this code the Main part at the bottom doesnt work
Topic archived. No new replies allowed.