hello guys i made a script for gta san andreas to add money but it doesn't work what should i do
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 174, 142, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("Money", 56, 24, 81, 25)
$Button1 = GUICtrlCreateButton("start", 48, 72, 81, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Hack()
EndSwitch
WEnd
Func _Hack(); This is the functions which turns on the hacks when you start S4 League.
GUISetState(@SW_HIDE);
ToolTip("Start Mta!",0,0); This is up in the corner which says Start S4 League!
$WAIT = ProcessWait("Gta_sa.exe"); Waiting For The Process
$PID = ProcessExists("Gta_sa.exe"); He found ProcessName.exe
Sleep(500);Takes a little break..
$OPEN = _MemoryOpen ($PID); The memory .. which makes the functions work.
If GUICtrlRead($Checkbox1) = 1 Then
_MemoryWrite(0xB7CE50,$OPEN,"9000000","long")
EndIf
Exit
EndFunc