Hack Forums
[C] c++ D3D9 try to add hacks to items - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] c++ D3D9 try to add hacks to items (/showthread.php?tid=5871438)



c++ D3D9 try to add hacks to items - lol3771 - Aug 8, 2018

i want to make menu with hacks
but i stack.

this is my right now way to do this but i cant make else in the command i mean like that:

void active() {
if (Items[0].on_off)
{
*(DWORD*)0x763F5F = 1;
}
}

and i want something like that :

if (Items[0].on_off)
{
*(DWORD*)0x763F5F = 1;
else
*(DWORD*)0x763F5F = 0;
}
}

btw im new in c++, so i hope to learn something and get the fix :D


RE: c++ D3D9 try to add hacks to items - aeiro - Aug 8, 2018

(Aug 8, 2018 08:24 AM)lol3771 Wrote:  i want to make menu with hacks
but i stack.

this is my right now way to do this but i cant make else in the command i mean like that:

Your bracket placement is wrong. should be
Code
void active() {
if (Items[0].on_off)
{
*(DWORD*)0x763F5F = 1;
} ///notice this bracket ends the if statement
else
{
*(DWORD*)0x763F5F = 0;
} // this bracket ends the else statement
}



RE: c++ D3D9 try to add hacks to items - lol3771 - Aug 8, 2018

(Aug 8, 2018 09:12 AM)aeiro Wrote:  Your bracket placement is wrong. should be
Code
void active() {
if (Items[0].on_off)
{
*(DWORD*)0x763F5F = 1;
} ///notice this bracket ends the if statement
else
{
*(DWORD*)0x763F5F = 0;
} // this bracket ends the else statement
}

Thx, ill try it


(Aug 8, 2018 09:12 AM)aeiro Wrote:  Your bracket placement is wrong. should be
Code
void active() {
if (Items[0].on_off)
{
*(DWORD*)0x763F5F = 1;
} ///notice this bracket ends the if statement
else
{
*(DWORD*)0x763F5F = 0;
} // this bracket ends the else statement
}
yea thx its helped to me :D
+Rep To You aeiro
i do:
Code
void active() {
if (Items[0].on_off) {
{
*(DWORD*)0x763F5F = 1;
}
}
else
{
*(DWORD*)0x763F5F = 0;
}
}