Gamehacking Dll C++

08/24/2011 16:10 Krasti#1
Hey epvpers.I have a problem.Well i know a bit C++ so i deside to make a dll for a game...well i would like to know to can i write a string hack from CE to the dll because i got some bugs...i mean i change adress from string to 4bytes or float and in inject i have bugs.

Eh a example


*(float*) Hard = 1.106904516E24; <- float value but bug...normal adress is a string.I tried some *(char[31]*) but error :/

I have you can help me.

Mfg
xCeManx
08/24/2011 16:39 buFFy!#2
char* pSZ = uraddress;
pSZ[i] = x;

or strcpy / memcpy
08/24/2011 16:52 Krasti#3
Quote:
Originally Posted by buFFy! View Post
char* pSZ = uraddress;
pSZ[i] = x;

or strcpy / memcpy
#define Hard 0xadress ;o
also i got some erros....
but thank for your answer
08/25/2011 16:16 maysson#4
Quote:
Originally Posted by xCeManx View Post
#define Hard 0xadress ;o
also i got some erros....
but thank for your answer
Try That .....
char* pSZ = unddress;
pSZ[i] = x;

or strycopy / memcopy
08/25/2011 17:11 Krasti#5
Quote:
Originally Posted by maysson View Post
Try That .....
char* pSZ = unddress;
pSZ[i] = x;

or strycopy / memcopy
Report :facepalm: ....

Anyway can someone help me? D:
08/25/2011 17:12 maysson#6
reported for ?
08/25/2011 18:41 PŠPplą’ər#7
Quote:
Originally Posted by buFFy! View Post
char* pSZ = uraddress;
pSZ[i] = x;

or strcpy / memcpy




Quote:
Originally Posted by maysson View Post
Try That .....
char* pSZ = unddress;
pSZ[i] = x;

or strycopy / memcopy
U got reported because its the shame thing.
08/25/2011 19:38 [P]]I[N[B[4]L]L#8
Quote:
Originally Posted by PŠPplą’ər View Post
U got reported because its the shame thing.
shame?

do u mean same? xD
08/25/2011 19:57 Krasti#9
Please be in topic D:
08/25/2011 20:03 ms​#10
Be more specific about what your code should do and what it actually does, otherwise we can't help you.
08/25/2011 20:49 Krasti#11
Quote:
Originally Posted by Metin2Spieler97 View Post
Be more specific about what your code should do and what it actually does, otherwise we can't help you.
It's a dll which inject with PerX and it's changed values from adress.Like CE.
But i don't know how to write the string adress....it's gamehacking
08/25/2011 22:01 ms​#12
In that case buFFy has already given you an answer.

For 8-bit-characters:
Code:
#define STR_ADDR  0x12569ADE
#define STR_VALUE "test"

strcpy((char *)STR_ADDR, STR_VALUE);
For Unicode-characters:
Code:
#define STR_ADDR  0x12569ADE
#define STR_VALUE L"test"
#define STR_LEN   5            /* STR_VALUE has 4 characters + 1 terminating-character */

memcpy((void *)STR_ADDR, STR_VALUE, sizeof (wchar_t) * STR_LEN);
08/25/2011 22:03 Krasti#13
Quote:
Originally Posted by Metin2Spieler97 View Post
In that case buFFy has already given you an answer.

For 8-bit-characters:
Code:
#define STR_ADDR  0x12569ADE
#define STR_VALUE "test"

strcpy((char *)STR_ADDR, STR_VALUE);
For Unicode-characters:
Code:
#define STR_ADDR  0x12569ADE
#define STR_VALUE L"test"
#define STR_LEN   5

memcpy((char *)STR_ADDR, STR_VALUE, sizeof (wchar_t) * STR_LEN);
Eh STR_LEN is the char?
Also i need make +1?
Thank you and sorry for that :/
08/25/2011 22:08 ms​#14
Quote:
Originally Posted by Metin2Spieler97 View Post
Code:
#define STR_LEN   5            /* STR_VALUE has 4 characters + 1 terminating-character */
I've edited that part for clarification.
STR_VALUE consists of "t" + "e" + "s" + "t" + "\0".
08/25/2011 22:18 Krasti#15
Quote:
Originally Posted by Metin2Spieler97 View Post
I've edited that part for clarification.
STR_VALUE consists of "t" + "e" + "s" + "t" + "\0".

So i write value in ""??