PDA

View Full Version : Help me with this :D



str1k3r21
12-01-2007, 12:47 PM
I get theses errors:


--------------------Configuration: DXTPublic - Win32 Debug--------------------
Compiling...
DXTPublicDlg.cpp
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(236) : error C2601: 'OnUnlimitedStaminaOff' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(242) : error C2601: 'OnXRayVisionOn' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(247) : error C2601: 'OnXrayVisionOff' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(252) : error C2601: 'OnInvisibleOn' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(259) : error C2601: 'OnInvisibleOff' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(266) : error C2601: 'OnAntiKickOn' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(272) : error C2601: 'OnAntiKickOff' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(279) : error C2601: 'OnUnlimitedAmmoOn' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(290) : error C2601: 'OnUnlimitedAmmoOff' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(301) : error C2601: 'OnOPKOn' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(310) : error C2601: 'OnOPKOff' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(319) : error C2601: 'OnFastAsFamasOn' : local function definitions are illegal
C:Program FilesMicrosoft Visual StudioMyProjectsDXTPublicDXTPublicDlg.cpp(328) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

DXTPublic.exe - 13 error(s), 0 warning(s)

Haxer43 tried found out what it was and he could not..
Here is what I have.


BEGIN_MESSAGE_MAP(CDXTPublicDlg, CDialog)
//{{AFX_MSG_MAP(CDXTPublicDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_WM_TIMER()
ON_BN_CLICKED(IDC_BUTTON1, OnUnlimitedStaminaOn)
ON_BN_CLICKED(IDC_BUTTON2, OnUnlimitedStaminaOff)
ON_BN_CLICKED(IDC_BUTTON3, OnXRayVisionOn)
ON_BN_CLICKED(IDC_BUTTON4, OnXrayVisionOff)
ON_BN_CLICKED(IDC_BUTTON5, OnInvisibleOn)
ON_BN_CLICKED(IDC_BUTTON6, OnInvisibleOff)
ON_BN_CLICKED(IDC_BUTTON8, OnAntiKickOn)
ON_BN_CLICKED(IDC_BUTTON9, OnAntiKickOff)
ON_BN_CLICKED(IDC_BUTTON10, OnUnlimitedAmmoOn)
ON_BN_CLICKED(IDC_BUTTON11, OnUnlimitedAmmoOff)
ON_BN_CLICKED(IDC_BUTTON12, OnOPKOn)
ON_BN_CLICKED(IDC_BUTTON13, OnOPKOff)
ON_BN_CLICKED(IDC_BUTTON14, OnFastAsFamasOn)

//}}AFX_MSG_MAP
END_MESSAGE_MAP()

And then in my resource H file i have this.



//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by DXTPUBLIC.RC
//
#define IDR_MAINFRAME 128
#define IDM_ABOUTBOX 0x0010
#define IDD_ABOUTBOX 100
#define IDS_ABOUTBOX 101
#define IDD_DXTPUBLIC_DIALOG 102
#define IDC_BUTTON1 1001
#define IDC_BUTTON2 1002
#define IDC_BUTTON3 1003
#define IDC_BUTTON4 1004
#define IDC_BUTTON5 1005
#define IDC_BUTTON6 1006
#define IDC_BUTTON7 1007
#define IDC_BUTTON8 1008
#define IDC_BUTTON9 1009
#define IDC_BUTTON10 1010
#define IDC_BUTTON11 1011
#define IDC_BUTTON12 1012
#define IDC_BUTTON13 1013
#define IDC_BUTTON14 1014
#define IDC_BUTTON15 1015
#define stamina 2000

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS

#define _APS_NEXT_RESOURCE_VALUE 129
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 32771
#endif
#endif

And in my code i have this:



// The system calls this to obtain the cursor to display while the user drags
// the minimized window.
HCURSOR CDXTPublicDlg::OnQueryDragIcon()
{
return (HCURSOR) m_hIcon;
}

void CDXTPublicDlg::OnUnlimitedStaminaOn()
{
SetTimer(stamina, 1, NULL);

}

void CDXTPublicDlg::OnTimer(UINT nIDEvent)
{
{
switch(nIDEvent)
{
case stamina:
{
WL6714805910051275809051(0x8DBAFC, 1120403456);
}
break;

CDialog::OnTimer(nIDEvent);
}
}

void CDXTPublicDlg::OnUnlimitedStaminaOff()
{
KillTimer(stamina);

}

void CDXTPublicDlg::OnXRayVisionOn()
{
WL6714805910051275809051(0xAF81C0, 0);
}

void CDXTPublicDlg::OnXrayVisionOff()
{
WL6714805910051275809051(0xAF81C0, 1176256512);
}

I wont give rest because is Unlim ammo OPK antikick and invisible and fast as famas but can some1 tell me whats wrong

Thank You


Str1k3r21

m0she
12-01-2007, 01:05 PM
you needs to define your timers in resourse.h look at the tut of making timer
you can see there how to define a timer in resource.h

str1k3r21
12-01-2007, 01:18 PM
I did its there #define stamina

Vindcare
12-01-2007, 02:15 PM
I had the same problem! U forgot ; begind some function i ques. look all the code.
And if ur function code end on
<code here>;
}

str1k3r21
12-01-2007, 02:24 PM
Can you be more specific?

Vindcare
12-01-2007, 02:34 PM
void writepointfloat(long addy, short offset, long value)
{
long maddy;
long saddy;
memory();
ReadProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &maddy, sizeof(LAKSIESIR3), NULL);
saddy = maddy + offset;
WriteProcessMemory(hProcess, (LPVOID*)(DWORD) saddy, &value, sizeof(value), NULL);
}

If this is ur function code to writepointfloat.
All Functions need to end on
<code>;
}

Like here:
sizeof(value), NULL);
}



Make sure ur all functions ends like that.

str1k3r21
12-01-2007, 02:35 PM
Yeh i did that with the ; at the end

Vindcare
12-01-2007, 04:55 PM
Its sure that u forgot to close some function with "}" Chceck all.

str1k3r21
12-01-2007, 05:24 PM
I like trpple checked iven got haxer43 to check them..