PDA

View Full Version : wat am i doing wrong?



Wieter20
01-19-2008, 07:27 AM
--------------------Configuration: Stamina Hax - Win32 Debug--------------------
Compiling...
Stamina HaxDlg.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\Stamina Hax\Stamina HaxDlg.cpp(256) : error C2181: illegal else without matching if
C:\Program Files\Microsoft Visual Studio\MyProjects\Stamina Hax\Stamina HaxDlg.cpp(270) : error C2181: illegal else without matching if
Error executing cl.exe.

Stamina Hax.exe - 2 error(s), 0 warning(s)

this is for winchester and swim hack

wr194t
01-19-2008, 07:28 AM
--------------------Configuration: Stamina Hax - Win32 Debug--------------------
Compiling...
Stamina HaxDlg.cpp
C:Program FilesMicrosoft Visual StudioMyProjectsStamina HaxStamina HaxDlg.cpp(256) : error C2181: illegal else without matching if
C:Program FilesMicrosoft Visual StudioMyProjectsStamina HaxStamina HaxDlg.cpp(270) : error C2181: illegal else without matching if
Error executing cl.exe.

Stamina Hax.exe - 2 error(s), 0 warning(s)

this is for winchester and swim hackDouble click the errors (one at a time), it will then lead to where the problems are. Screenshots those, and I'll see what I can do.

Wieter20
01-19-2008, 07:40 AM
here are the screenies:
http://img242.imageshack.us/my.php?image=dxth4x1ys0.png
http://img242.imageshack.us/my.php?image=dxth4x2is5.png












zaxscd9022:WritePointerlong

wr194t
01-19-2008, 07:56 AM
First error fix:

if (GetKeyState(VK_END)&1
zaxscd9002(0x12DF500, 0x4C, 42);
else
zaxscd9002(0x12DF500, 0x4C, 0);

Second error fix:


if (GetKeyState(VK_END)&1
zaxscd9002(0x12DF500, 0x276, 4);
else
zaxscd9002(0x12DF500, 0x276, 0);

Wieter20
01-19-2008, 08:07 AM
ok hotkeys working now but i cant get winchester every time i role i get it again u now? so i cant shoot
same with swim wen i turn swim on and off i cant crouch any more:S how can i fix that?

wr194t
01-19-2008, 08:08 AM
ok hotkeys working now but i cant get winchester every time i role i get it again u now? so i cant shoot
same with swim wen i turn swim on and off i cant crouch any more:S how can i fix that?Try this:

if (GetKeyState(VK_END)&1
zaxscd9002(0x12DF500, 0x4C, 42);

Wieter20
01-19-2008, 08:13 AM
that aint working because it keeps freezing the address..

wr194t
01-19-2008, 08:26 AM
that aint working because it keeps freezing the address..Make a new timer with just:

zaxscd9002(0x12DF500, 0x4C, 42);

And the hotkey timer should look like this:

if (GetKeyState(VK_END)&1
SetTimer(TIMERNAMEHERE, 1, NULL);
else
KillTimer(TIMERNAMEHERE);

Wieter20
01-19-2008, 08:44 AM
not the hotkeys aint working at all and i cant turn off swim anymore:S

wr194t
01-19-2008, 09:04 AM
Weapons timer:

zaxscd9002(0x12DF500, 0x4C, 42);

Weapons hotkey:

if (GetKeyState(VK_END)&1
SetTimer(WEAPONSTIMERNAMEHERE, 1, NULL);
else
KillTimer(WEAPONSTIMERNAMEHERE);

Swim Hotkey:

if (GetKeyState(VK_F7)&1
zaxscd9002(0x12DF500, 0x276, 4);
else
zaxscd9002(0x12DF500, 0x276, 0);

Wieter20
01-19-2008, 09:07 AM
i did.. but it just dont working:mad: :mad:

wr194t
01-19-2008, 09:11 AM
Search for this in your coding:

SetIcon(m_hIcon, FALSE);

Under it put this:

SetTimer(yourtimerhere,1,NULL);
SetTimer(yourtimerhere,1,NULL);

Replace the yourtimerhere with your hotkey timer names.

Wieter20
01-19-2008, 09:46 AM
ok now every thing is working fine but now i get this error:

--------------------Configuration: My Good Hotkey Trainer - Win32 Debug--------------------
Compiling...
My Good Hotkey TrainerDlg.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\My Good Hotkey Trainer\My Good Hotkey TrainerDlg.cpp(311) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

My Good Hotkey Trainer.exe - 1 error(s), 0 warning(s)

wr194t
01-19-2008, 09:54 AM
ok now every thing is working fine but now i get this error:

--------------------Configuration: My Good Hotkey Trainer - Win32 Debug--------------------
Compiling...
My Good Hotkey TrainerDlg.cpp
C:Program FilesMicrosoft Visual StudioMyProjectsMy Good Hotkey TrainerMy Good Hotkey TrainerDlg.cpp(311) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

My Good Hotkey Trainer.exe - 1 error(s), 0 warning(s)Doube click the error, see where it leads.

Wieter20
01-19-2008, 10:01 AM
it leads to the end here is screenie:
http://img258.imageshack.us/my.php?image=dxth4x4ab2.png

wr194t
01-19-2008, 10:16 AM
Hmm.. I'm not sure what that error is.

Wieter20
01-19-2008, 10:49 AM
and idea how i can remove that? so it wont give error?

man2fight
01-19-2008, 12:32 PM
change this


CDialog::OnTimer(nIDEvent);
{

to

CDialog::OnTimer(nIDEvent);
{
}

LegendaryHacker
01-19-2008, 11:12 PM
Man see :

if (GetKeyState(VK_END)&1
zaxscd9002(0x12DF500, 0x4C, 42);
else
zaxscd9002(0x12DF500, 0x4C, 0);

a if statement work like this:

if (something that return true or false) <--- you see ? the w**** argument / function into if, NO OUT. (my ****ing exaplain english :( )

So you have to write like thats:

if (GetKeyState(VK_END)&1)
zaxscd9002(0x12DF500, 0x4C, 42);
else
zaxscd9002(0x12DF500, 0x4C, 0);

its how its have to work, btw, i never used &1 to getkeystate, so if its don't work, please use:

if (GetKeyState(VK_END) < 0)

Wieter20
01-20-2008, 02:20 AM
change this


CDialog::OnTimer(nIDEvent);
{

to

CDialog::OnTimer(nIDEvent);
{
}

it still gives the same error:S i really need help whit this