Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Call of Duty Hacks & Cheats › Call of Duty 8 - Modern Warfare 3 (MW3) Hacks & Cheats › Call of Duty Modern Warfare 3 Coding, Programming & Source Code › How to use Pointer + Offset in C#? Question in title ^_^

How to use Pointer + Offset in C#? Question in title ^_^

Posts 1–15 of 23 · Page 1 of 2
_PuRe.LucK*
_PuRe.LucK*
How to use Pointer + Offset in C#? Question in title ^_^
How to use Pointer + Offset in C#?

Question in title ^_^
#1 · 13y ago
LO
Lovroman
Quote Originally Posted by Nik0815 View Post
How to use Pointer + Offset in C#?

Question in title ^_^
Example using Jorn's class:

Code:
WriteFloat(ReadInteger(0x12345678) + 0xC), 15);
#2 · 13y ago
_PuRe.LucK*
_PuRe.LucK*
Quote Originally Posted by Lovroman View Post
Example using Jorn's class:

Code:
WriteFloat(ReadInteger(0x12345678) + 0xC), 15);
Doesn't works for me sry ;(

---------- Post added at 09:18 AM ---------- Previous post was at 09:16 AM ----------

Quote Originally Posted by Lovroman View Post
Example using Jorn's class:

Code:
WriteFloat(ReadInteger(0x12345678) + 0xC), 15);
Because in jorns(jorndel) isn't readfloat and readinteger ?!

Can you give me source of WriteFloat please?
#3 · edited 13y ago · 13y ago
LO
Lovroman
Quote Originally Posted by Nik0815 View Post
Doesn't works for me sry ;(

---------- Post added at 09:18 AM ---------- Previous post was at 09:16 AM ----------



Because in jorns(jorndel) isn't readfloat and readinteger ?!

Can you give me source of WriteFloat please?
There isn't WriteFloat/ReadFloat in his class, you have to add it manualy .
ReadInteger is there
#4 · 13y ago
_PuRe.LucK*
_PuRe.LucK*
Quote Originally Posted by Lovroman View Post
There isn't WriteFloat/ReadFloat in his class, you have to add it manualy .
ReadInteger is there
Whats the source of float?

ANd thanks
#5 · 13y ago
LO
Lovroman
Quote Originally Posted by Nik0815 View Post
Whats the source of float?

ANd thanks
Add new Write Function:

Code:
 private void Write(int Address, float Value)
        {
            byte[] Buffer = BitConverter.GetBytes(Value);
            IntPtr Zero = IntPtr.Zero;
            WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
        }
And new WriteFloat & ReadFloat functions:
Code:
  public void WriteFloat(int Address, float Value)
        {
            Write(Address, Value);
        }
Code:
  public float ReadFloat(int Address, int Length = 4)
        {
            return (float)BitConverter.ToDouble(Read(Address, Length), 0);
        }
#6 · 13y ago
_PuRe.LucK*
_PuRe.LucK*
Quote Originally Posted by Lovroman View Post
Add new Write Function:

Code:
 private void Write(int Address, float Value)
        {
            byte[] Buffer = BitConverter.GetBytes(Value);
            IntPtr Zero = IntPtr.Zero;
            WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
        }
And new WriteFloat & ReadFloat functions:
Code:
  public void WriteFloat(int Address, float Value)
        {
            Write(Address, Value);
        }
Code:
  public float ReadFloat(int Address, int Length = 4)
        {
            return (float)BitConverter.ToDouble(Read(Address, Length), 0);
        }
Oh thanks guy
I'll give u credits
#7 · 13y ago
LO
Lovroman
Quote Originally Posted by Nik0815 View Post
Oh thanks guy
I'll give u credits
You don't have to, but do it if you want .No problem.
#8 · 13y ago
_PuRe.LucK*
_PuRe.LucK*
Quote Originally Posted by Lovroman View Post
You don't have to, but do it if you want .No problem.
I must give you credits
#9 · 13y ago
LO
Lovroman
Quote Originally Posted by Nik0815 View Post
I must give you credits
OK !
Don't forget, this is just example using Float pointer, pointers aren't always float .
#10 · 13y ago
_PuRe.LucK*
_PuRe.LucK*
Quote Originally Posted by Lovroman View Post
OK !
Don't forget, this is just example using Float pointer, pointers aren't always float .
Yoo, I know D

---------- Post added at 09:43 AM ---------- Previous post was at 09:38 AM ----------

Quote Originally Posted by Lovroman View Post
OK !
Don't forget, this is just example using Float pointer, pointers aren't always float .
And can i do it like this:


private void Write(int Address, float Value)
{
byte[] Buffer = BitConverter.GetBytes(Value);
IntPtr Zero = IntPtr.Zero;
WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
}

and for integer

private void Write2(int Address, int Value)
{
byte[] Buffer = BitConverter.GetBytes(Value);
IntPtr Zero = IntPtr.Zero;
WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
}
#11 · 13y ago
LO
Lovroman
Quote Originally Posted by Nik0815 View Post
Yoo, I know D

---------- Post added at 09:43 AM ---------- Previous post was at 09:38 AM ----------



And can i do it like this:


private void Write(int Address, float Value)
{
byte[] Buffer = BitConverter.GetBytes(Value);
IntPtr Zero = IntPtr.Zero;
WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
}

and for integer

private void Write2(int Address, int Value)
{
byte[] Buffer = BitConverter.GetBytes(Value);
IntPtr Zero = IntPtr.Zero;
WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
}

Why ?
That'd give you extra work .
You can have two functions with same name => they have different arguments(in first function value is integer, in second value is float).
#12 · 13y ago
_PuRe.LucK*
_PuRe.LucK*
Quote Originally Posted by Lovroman View Post

Why ?
That'd give you extra work .
You can have two functions with same name => they have different arguments(in first function value is integer, in second value is float).
oh yes okay so its both write but different arguments!

And how i add more offset like 5
#13 · 13y ago
LO
Lovroman
Quote Originally Posted by Nik0815 View Post
oh yes okay so its both write but different arguments!

And how i add more offset like 5
IDK.
You can try to add more +0xOffset's
Code:
WriteInteger((ReadInteger(addy)+0x1+0x2),value)
..
I have never tried to use pointer with multiple offfsets.
#14 · 13y ago
_PuRe.LucK*
_PuRe.LucK*
Quote Originally Posted by Lovroman View Post
IDK.
You can try to add more +0xOffset's
Code:
WriteInteger((ReadInteger(addy)+0x1+0x2),value)
..
I have never tried to use pointer with multiple offfsets.
Or you do 0x1 + 0x2 in calculator and add these

---------- Post added at 01:07 PM ---------- Previous post was at 11:09 AM ----------

Quote Originally Posted by Nik0815 View Post
Or you do 0x1 + 0x2 in calculator and add these
Hey lovro can u accept me in skype please?
#15 · 13y ago
Posts 1–15 of 23 · Page 1 of 2

Post a Reply

Similar Threads

  • How to use Pointer + Offset in C#?By _PuRe.LucK* in C# Programming
    10Last post 13y ago
  • How to use pointer from CheatEngine in C#By pakistanihaider in Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    24Last post 14y ago
  • [vb6] How do i read a float from memory(pointer+offset)+how to use multilevelpointerBy freitag in Visual Basic Programming
    5Last post 17y ago
  • question how to useBy hyptonix in Combat Arms Help
    2Last post 17y ago
  • [Question] how to use all adressesBy niekill in WarRock - International Hacks
    7Last post 18y ago

Tags for this Thread

None