Results 1 to 3 of 3
  1. #1
    0theghost0's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    need help to make trainer for games

    iam new for make trainers and i want to learn to be master

    iam training to make this but i get some error :

    Code:
    Public Class Form1
        Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
    
        Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
            Dim Sun As String = 99999
            Dim Coine As String = 99999
            Dim F1 As Boolean
            Dim F2 As Boolean
            F1 = GetAsyncKeyState(Keys.F1)
    
            If F1 = True Then
                WriteDMAInteger("PlantsVsZombies", &H19F9C8, {&H5578}, Sun, 1)
                WriteDMAInteger("PlantsVsZombies", &H1923A0, {&H5578}, Sun, 1)
                WriteDMAInteger("PlantsVsZombies", &H19F9FC, {&H5578}, Sun, 1)
                WriteInteger("PlantsVsZombies", &H144E6040, Sun)
            End If
            F2 = GetAsyncKeyState(Keys.F2)
    
            If F2 = True Then
                WriteInteger("PlantsVsZombies", &H23A1A10, Coine)
                WriteDMAInteger("PlantsVsZombies", &H247A6DC, {&H50}, Sun, 1)
                WriteDMAInteger("PlantsVsZombies", &HDBA6DC, {&H50}, Sun, 1)
                WriteDMAInteger("PlantsVsZombies", &H2BA75C, {&H50}, Sun, 1)
                WriteDMAInteger("PlantsVsZombies", &H24BA75C, {&H50}, Sun, 1)
    
            End If
        End Sub
    End Class
    error will be in :
    Code:
    F1 = GetAsyncKeyState(Keys.F1)
    message out for me when load the trainer :
    Code:
    Additional information: A call to PInvoke function 'Plant Vs Zombie!Plant_Vs_Zombie.Form1::GetAsyncKeyState' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
    any new idea to make this trainer with out any error > and hotket work fine

  2. #2
    univex's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    284
    Reputation
    30
    Thanks
    1,952
    My Mood
    Busy
    As the error states, your PInvoke declaration is probably wrong, look at it first.

  3. #3
    0theghost0's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    cN YOU SHOW ME the right way ??

Similar Threads

  1. I Need Help With Making a Custom Gaming PC?
    By CriticalBacon in forum Computer Builds & Upgrades
    Replies: 13
    Last Post: 05-26-2014, 04:18 PM
  2. [Help] I Need Help with Making Hack Especially For BFH....
    By 1loggerboy2 in forum Battlefield Heroes Hacks
    Replies: 1
    Last Post: 01-04-2013, 08:01 PM
  3. [Request] it's not request for hack i just need help to creat an account game KR
    By kazuma-san in forum General Game Hacking
    Replies: 0
    Last Post: 10-16-2012, 11:18 AM
  4. need help with Making an injectable DLL for MAgestorm
    By kiloabq in forum Member Introduction & Return
    Replies: 2
    Last Post: 03-23-2012, 09:31 PM
  5. [Solved] Need help with making my own .dll files for combat arms
    By SPIKESx in forum Combat Arms Help
    Replies: 1
    Last Post: 11-14-2011, 02:29 AM