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 › CrossFire Hacks & Cheats › CrossFire Hack Coding / Programming / Source Code › Code is written but can't fix errors pls help

Code is written but can't fix errors pls help

Posts 1–13 of 13 · Page 1 of 1
kmanev073
kmanev073
Code is written but can't fix errors pls help
THIS IS VB !!!!!!

Public Const PROCESS_VM_READ = &H10
Public Const PROCESS_VM_WRITE = (&H20)
Public Const PROCESS_VM_OPERATION = (&H8)
Public Const PROCESS_QUERY_INFORMATION = (&H400)
Public Const PROCESS_READ_WRITE_QUERY = PROCESS_VM_READ + PROCESS_VM_WRITE + PROCESS_VM_OPERATION + PROCESS_QUERY_INFORMATION
Public Const PROCESS_ALL_ACCESS = &H1F0FFF
Public Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As Int32, ByRef lpBuffer As Int32, ByVal nSize As Int32, ByVal lpNumberOfBytesWritten As Int32) As Long
Public Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As Int32, ByRef lpBuffer As Byte(), ByVal nSize As Int32, ByVal lpNumberOfBytesWritten As Int32) As Long
Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As Int32, ByVal lpBuffer() As Byte, ByVal nSize As Int32, ByVal lpNumberOfBytesWritten As Int32) As Long
Public Declare Function OpenProcess Lib "kernel32.dll" (ByVal dwDesiredAccess As UInteger, ByVal bInheritHandle As Integer, ByVal dwProcessId As UInteger) As IntPtr
Public Declare Function CloseHandle Lib "kernel32.dll" (ByVal hHandle As IntPtr) As Boolean
Public Function Game_Hwnd() As Int32
Dim i As Int32 : Dim foundit As Boolean = False
For Each p As Process In Process.GetProcessesByName("Crossfire") ' Replace that with the games window text
i = p.Id
foundit = True : Exit For
Next
If foundit = True Then
Return i
Else
Return 0
End If
End Function

#Region "Memory reading/Writing"
Private Sub Label9_Click(ByVal Address As Integer, ByVal Value As Integer, ByVal Size As Integer, ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label9.Click
Try
Dim GameReadWrite As Integer
Dim PID As Integer = Game_Hwnd()
GameReadWrite = OpenProcess(PROCESS_READ_WRITE_QUERY, False, PID)

Dim bytArray() As Byte
bytArray = BitConverter.GetBytes(Value)
WriteProcessMemory(GameReadWrite, Address, bytArray, Size, 0)

CloseHandle(GameReadWrite)
Catch Ex As Exception
'ShowError(Ex)
End Try
End Sub
#End Region



and the error is :Error 1 Method 'Private Sub Label9_Click(Address As Integer, Value As Integer, Size As Integer, sender As Object, e As System.EventArgs)' cannot handle event 'Public Event Click(sender As Object, e As System.EventArgs)' because they do not have a compatible signature. C:\Documents and Settings\Antonia\my documents\visual studio 2010\Projects\CF_ShArKs CrossFire NA Mega Hack\CF_ShArKs CrossFire NA Mega Hack\Form3.vb 42 178 CF_ShArKs CrossFire NA Mega Hack

pls help
#1 · 14y ago
giniyat101
giniyat101
warp [code] tags plz..
@kmanev073
#2 · 14y ago
kmanev073
kmanev073
@giniyat101 what ?
#3 · 14y ago
Fly3r
Fly3r
@giniyat101 means to make it like
Code:
 this
@kmanev073
#4 · 14y ago
CR
CrossRaiders
This?

Code:
Public Const PROCESS_VM_READ = &H10
 Public Const PROCESS_VM_WRITE = (&H20)
 Public Const PROCESS_VM_OPERATION = (&H8)
 Public Const PROCESS_QUERY_INFORMATION = (&H400)
 Public Const PROCESS_READ_WRITE_QUERY = PROCESS_VM_READ + PROCESS_VM_WRITE + PROCESS_VM_OPERATION + PROCESS_QUERY_INFORMATION
 Public Const PROCESS_ALL_ACCESS = &H1F0FFF
 Public Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As Int32, ByRef lpBuffer As Int32, ByVal nSize As Int32, ByVal lpNumberOfBytesWritten As Int32) As Long
 Public Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As Int32, ByRef lpBuffer As Byte(), ByVal nSize As Int32, ByVal lpNumberOfBytesWritten As Int32) As Long
 Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As Int32, ByVal lpBuffer() As Byte, ByVal nSize As Int32, ByVal lpNumberOfBytesWritten As Int32) As Long
 Public Declare Function OpenProcess Lib "kernel32.dll" (ByVal dwDesiredAccess As UInteger, ByVal bInheritHandle As Integer, ByVal dwProcessId As UInteger) As IntPtr
 Public Declare Function CloseHandle Lib "kernel32.dll" (ByVal hHandle As IntPtr) As Boolean
 Public Function Game_Hwnd() As Int32
 Dim i As Int32 : Dim foundit As Boolean = False
 For Each p As Process In Process.GetProcessesByName("Crossfire") ' Replace that with the games window text
 i = p.Id
 foundit = True : Exit For
 Next
 If foundit = True Then
 Return i
 Else
 Return 0
 End If
 End Function

 
#Region "Memory reading/Writing"
 Private Sub Label9_Click(ByVal Address As Integer, ByVal Value As Integer, ByVal Size As Integer, ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label9.Click
 Try
 Dim GameReadWrite As Integer
 Dim PID As Integer = Game_Hwnd()
 GameReadWrite = OpenProcess(PROCESS_READ_WRITE_QUERY, False, PID)

 
Dim bytArray() As Byte
 bytArray = BitConverter.GetBytes(Value)
 WriteProcessMemory(GameReadWrite, Address, bytArray, Size, 0)

 
CloseHandle(GameReadWrite)
 Catch Ex As Exception
 'ShowError(Ex)
 End Try
 End Sub
 #End Region
#5 · 14y ago
kmanev073
kmanev073
@giniyat101 aaa ok but why
#6 · 14y ago
kmanev073
kmanev073
i cant edit anymore so i will leave it
#7 · 14y ago
Fly3r
Fly3r
he told you to make it like abel did to be easily readable
#8 · 14y ago
Ryuesi
Ryuesi
I'm do not know VB so i can not help you , but ask @Code[VB] he can help you
#9 · 14y ago
giniyat101
giniyat101
Quote Originally Posted by Takrai View Post
I'm do not know VB so i can not help you , but ask @Code[VB] he can help you
Stop spamming plz

@kmanev073
try copying the data between private sub ....... etc and end sub
then delete this part and double click on the label again to see if there is mistakes...
#10 · 14y ago
kmanev073
kmanev073
@giniyat101 i tried but it wnat declarations that i can only declare in the private sub so i write this topic
#11 · 14y ago
giniyat101
giniyat101
@kmanev073
the error on this line:
Code:
Private Sub Label9_Click(Address As Integer, Value As Integer, Size As Integer, sender As Object, e As System.EventArgs)
change to:
Code:
Private Sub Label9_Click(sender As Object, e As System.EventArgs
done!
#12 · 14y ago
kmanev073
kmanev073
yea but in that way i can define the value and these this make other mistakes
#13 · 14y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • Korean warrock error ! pls help me!By TheDark in WarRock Korea Hacks
    1Last post 18y ago
  • Cod4 Jaegerbomb Aimbot + more hack Error pls help!By bigdadyc in Call of Duty 4 - Modern Warfare (MW) Hacks
    5Last post 17y ago
  • ERROR PLS HELPBy JohnAntony in Sudden Attack General
    4Last post 16y ago
  • i can't find playerpointer... pls helpBy kjn220 in WarRock Discussions
    4Last post 16y ago
  • hotkey error - pls helpBy /b/oss in Visual Basic Programming
    14Last post 16y ago

Tags for this Thread

None