|
 |
|
|
|
|
|
c# teleport to coordonates c# help
 |
|
 |
| |
paulicabos  |
Posted: Thursday, Aug 2 2012, 19:15
|
Player Hater

Group: Members
Joined: Jul 27, 2012

|
| QUOTE (K^2 @ Thursday, Aug 2 2012, 13:03) | | Do you understand hex numbers? What is 0x14+0x30? And do you understand how to work with pointers in C#? If not, you need to learn these things. | I say this tut http://tr7network.com/gta-san-andreas-hack...-gta-hack-in-c/For editing money u use uint money = 99999999; EditMemory(0xB7CE50, money); 0xB70153 - [byte] Current Hour 0x8D5104 - [byte] Current blur level 0xB7014E - [byte] Current Weekday (1 through 7) If i know this i will use byte x=3; EditMemory(0xB70153, x); This changes the current hour in gta.. I cant find out how to edit (CPed+0x14) +0x30 = [dword] XPos (CPed+0x14) +0x34 = [dword] YPos (CPed+0x14) +0x38 = [dword] ZPos .. I'm really new in the memory thing and i will be grateful if you can help me..
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
K^2  |
Posted: Thursday, Aug 2 2012, 19:44
|
Vidi Vici Veni

Group: Zaibatsu
Joined: Apr 14, 2004



|
No, what you wrote will not work to edit current hour, etc., because EditMemory takes a uint, and will over-write 4 bytes of data. It might let you pass a byte parameter to it, but it will overwrite not only the hour byte, but also 3 following bytes with 0s. That's not what you want.
You are trying to hack somebody else's code without understanding how it works. Learn first. Go through EditMemory() line by line, and understand what every line does. Also, learn how to work with pointers. You will never be able to complete this code if you don't understand how pointers are handled.
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
paulicabos  |
|
Player Hater

Group: Members
Joined: Jul 27, 2012

|
| QUOTE (K^2 @ Thursday, Aug 2 2012, 19:44) | No, what you wrote will not work to edit current hour, etc., because EditMemory takes a uint, and will over-write 4 bytes of data. It might let you pass a byte parameter to it, but it will overwrite not only the hour byte, but also 3 following bytes with 0s. That's not what you want.
You are trying to hack somebody else's code without understanding how it works. Learn first. Go through EditMemory() line by line, and understand what every line does. Also, learn how to work with pointers. You will never be able to complete this code if you don't understand how pointers are handled. |
Thx so much for your posts but what i dont understand is this (CPed+0x14) +0x30 = [dword] XPos I need and 0x.......... location... o i can edit it.. how can i find it 0xB6F5F0 - Player pointer (CPed) (CPed+0x14) +0x30 = [dword] XPos Ths means that (0xB6F5F0+0x14) +0x30 = [dword] XPos ? If i use cheat engine what should i type when i choose manualy the adress? What I really dont understand is that "+" between.. This post has been edited by paulicabos on Friday, Aug 3 2012, 07:35
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
paulicabos  |
Posted: Saturday, Aug 4 2012, 06:55
|
Player Hater

Group: Members
Joined: Jul 27, 2012

|
| QUOTE (K^2 @ Friday, Aug 3 2012, 08:15) | No. At 0xB6F5F0 is an address you need to add 0x14 and 0x30 to. So I can't give you the exact number. Nobody can. It has to be computed on the fly. That's why I'm telling you to read up on how pointers work. You will need to write code to read memory from certain address, convert it to pointer, apply offsets, and only then use it with the function EditMemory, after you modify it appropriately to handle floating point values.
You can't take shortcuts. In order to modify a program, you need to understand how it works. |
But if i want to use cheat engine how do I use that ? Because is not working with + .. Will show up error And in c# will be like EditMemory(0xB6F5F0+0x14+0x30,DWARD Value); ?
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|