• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 6 of 6
    1. #1
      Newbie
      L33T
       
      Coding
       
      Mikail601's Avatar
      Join Date
      Jan 2014
      Posts
      10
      Thanks (-->)
      0
      Thanks (<--)
      0

      Let the user change offsets (C#)

      John Kittz
      Hey, i want to make something that can make the users change the offset so they can use it for other servers of the game i want to hack.

      Code in C#

      Here is a little piece of my code:
      bool Hastespeed = false;
      String HastePointer = "1075A158";
      int[] HasteOffset = { I want in this part a textbox so people can use their own offsets in here};
      int HasteValue = 75;


      How to do this?

      In the form it is:

      checkbox1 -> button 1 -> textbox1 -> to change it to a custom offset.
      Last edited by Mikail601; 02-09-2014 at 06:02 PM.

    2. #2
      Hacker
      Retired
       
      Pawning
       
      Crazywink's Avatar
      Join Date
      Jul 2012
      Location
      US
      Posts
      647
      Thanks (-->)
      111
      Thanks (<--)
      226
      Just convert the string to an int. Int32.Parse(textBox1.Text);

      -Crazywink

    3. #3
      Newbie
      L33T
       
      Coding
       
      Mikail601's Avatar
      Join Date
      Jan 2014
      Posts
      10
      Thanks (-->)
      0
      Thanks (<--)
      0
      If i add this to the button1_click event it gives me an error

      HasteOffset = Int32.Parse(textBox1.Text);


      am i doing something wrong or am i putting this on the wrong place?

    4. #4
      Hacker
      Retired
       
      Pawning
       
      Crazywink's Avatar
      Join Date
      Jul 2012
      Location
      US
      Posts
      647
      Thanks (-->)
      111
      Thanks (<--)
      226
      Make sure to include the curly brackets.

      int[] HasteOffset = { Int32.Parse(textBox1.text) };

      Also, is there a reason you're storing it in an array, do you have multiple offsets you're changing?

    5. #5
      Newbie
      L33T
       
      Coding
       
      Mikail601's Avatar
      Join Date
      Jan 2014
      Posts
      10
      Thanks (-->)
      0
      Thanks (<--)
      0
      I have just one offset, but i tried and it didnt work. If i tryed to add a diferent offset it gave me some weard error without studio running, i runned the program as administrator to.

    6. #6
      Newbie
      On MVSE 2013
       
      Feeling Normal
       
      hackgen's Avatar
      Join Date
      Feb 2014
      Posts
      38
      Thanks (-->)
      5
      Thanks (<--)
      3
      Cheats'n'Trainers
      Convert.ToInt32(textBox1.text);

      Works with C Sharp

    Similar Game Hacker Threads

    1. [Help] [Java] Get user input and submit it into a website.
      By maxownage01 in forum Misc Coding
      Replies: 6
      Last Post: 06-23-2016, 10:37 AM
    2. [Help] Clearing the user input
      By tvojama in forum C/C++
      Replies: 5
      Last Post: 02-29-2016, 01:06 AM
    3. [Community] Increasing the user base
      By tvojama in forum GH Discussion
      Replies: 7
      Last Post: 10-15-2015, 11:34 PM
    4. [Off Topic] Ban the user above you!
      By Syntax Error in forum Off Topic
      Replies: 23
      Last Post: 05-06-2015, 03:17 AM
    5. [Source Code] Sorting arrays first min and max and then in a ordered list from user input.
      By voila in forum Tutorials and Snippets
      Replies: 9
      Last Post: 11-23-2013, 10:43 AM

    Tags for this Thread