Code source erroné

    Publicités

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Status
Not open for further replies.

Le_Gamer

Membre
May 15, 2012
23
0
301
A
Bonjour voila j'éssaye de crée mon premier cheat mais j'ai un problème dans mon code source .

#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=S4_League_icon_by_jorgevsky.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Gamer Trainer", 602, 366, 191, 124)
GUISetIcon("C:\Users\Kicho.PC-de-kishonan.000\Desktop\S4_League_icon_by_jorgevsky.ico", -1)
GUISetFont(8, 800, 0, "MS Sans Serif")
GUISetBkColor(0xFFFFFF)
$Checkbox1 = GUICtrlCreateCheckbox("InfSp", 24, 16, 97, 17)
GUICtrlSetFont(-1, 10, 800, 2, "Meiryo UI")
GUICtrlSetColor(-1, 0x000000)
GUICtrlSetBkColor(-1, 0xFF0000)
$Checkbox2 = GUICtrlCreateCheckbox("InfAmmo", 264, 16, 97, 17)
GUICtrlSetFont(-1, 10, 800, 2, "Meiryo UI")
GUICtrlSetColor(-1, 0x000000)
GUICtrlSetBkColor(-1, 0xFF0000)
$Checkbox3 = GUICtrlCreateCheckbox("200Hp", 496, 16, 97, 17)
GUICtrlSetFont(-1, 10, 800, 2, "Meiryo UI")
GUICtrlSetColor(-1, 0x000000)
GUICtrlSetBkColor(-1, 0xFF0000)
$Checkbox4 = GUICtrlCreateCheckbox("CutSpeed", 496, 64, 97, 17)
GUICtrlSetFont(-1, 10, 800, 2, "Meiryo UI")
GUICtrlSetColor(-1, 0x000000)
GUICtrlSetBkColor(-1, 0xFF0000)
$Checkbox5 = GUICtrlCreateCheckbox("FastFire", 264, 64, 97, 17)
GUICtrlSetFont(-1, 10, 800, 2, "Meiryo UI")
GUICtrlSetColor(-1, 0x000000)
GUICtrlSetBkColor(-1, 0xFF0000)
$Checkbox6 = GUICtrlCreateCheckbox("1HitKill", 24, 64, 97, 17)
GUICtrlSetFont(-1, 10, 800, 2, "Meiryo UI")
GUICtrlSetColor(-1, 0x000000)
GUICtrlSetBkColor(-1, 0xFF0000)
$Pic1 = GUICtrlCreatePic("C:\Users\Kicho.PC-de-kishonan.000\Pictures\Image\33uwime.jpg", 0, 88, 617, 289)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd
Func cheat()
ToolTip("En Attente d'S4League", 0, 0)
ProcessWait("S4Client.exe")
$PID = ProcessExists("S4Client.exe")
Sleep(500)
$OPEN = _MEMORYOPEN($PID)
ERROR: _MEMORYOPEN5(): undefined function.
_processsuspend("Aegis.exe")
ERROR: _processuspend(): undefined function .
_processsuspend("Aegis64.exe")
_processsuspend("HGWC.exe")
_processsuspend("S4Client.exe")
_processsuspend("XTrap.xt")
Sleep (2000)
If GUICtrlRead ($Checkbox1) = 1 Then
_MEMORYWRITE(0x.......... , $OPEN, "............ ", "4 byte ")InfSp
ERROR: syntax error
If GUICtrlRead ($Checkbox2) = 1 Then
_MEMORYWRITE(0x.......... , $OPEN, ".......... ", "4 byte ") InfAmmo
If GUICtrlRead ($Checkbox3) = 1 Then
_MEMORYWRITE(0x.......... , $OPEN, "............... ", "4 byte ") InfHp
If GUICtrlRead ($Checkbox6) = 1 Then
_MEMORYWRITE(0x........... , $OPEN, "............ ", "4 byte ") 1HitKill
If GUICtrlRead ($Checkbox5) = 1 Then
_MEMORYWRITE(0x............ , $OPEN, "............ ", "4 byte ") FastFire
If GUICtrlRead ($Checkbox4) = 1 Then
_MEMORYWRITE(0x............ , $OPEN, "................ ", "4 byte ") CutSpeed
EndIf
_memoryclose(ProcessExists("S4Client.exe"))
_processresume("Aegis.exe")
_processresume("Aegis64.exe")
_processresume("HGWC.exe")
_processresume("S4Client.exe")
_processresume("XTrap.xt")
Exit 0
Endfunc

Func _PROCESSSUSPEND($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc




Func _PROCESSRESUME($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc

Pourriez vous me corriger le code source svp .
 

Dragty

V
Mar 21, 2012
1,017
0
942
Il te manque un fichier (nomad Memory), regarde un tuto dans la section consacré a la programation pour plus d'info.
Et si je ne me trompe pas c'est Agis et non Aegis ( mais pas sur, test).
 
Last edited:

[A]byss

Unsere Rettung
V
May 16, 2010
2,321
3
762
C'est plutot un leger copier coller d'un script ça non ?
Enfin ouai regarde mieux les tutos
 

yowear

Membre
Aug 12, 2012
13
0
201
mdr

---------- Message ajouté à 18h50 ---------- Le message précédent était à 18h49 ----------

ton code et faut

---------- Message ajouté à 18h51 ---------- Le message précédent était à 18h50 ----------

Ton code source et faut.
 
Status
Not open for further replies.