Arcade Prehacks

Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Senior Member
    Join Date
    Jan 2010
    Posts
    167

    Re: Army RPG Battling System

    bug report : aftre i killed him for 1st time then text started flashing and i couldnt pick anything aftre

  2. #12
    router's Avatar
    Join Date
    Dec 2009
    Posts
    223

    Re: Army RPG Battling System

    Use getch instead of having the user press enter
    In the process of [insert status here]
    May post from time to time.

  3. #13
    Senior Member
    Join Date
    Jun 2010
    Location
    Southern USA
    Posts
    1,221

    Re: Army RPG Battling System

    Quote Originally Posted by wayneo
    bug report : aftre i killed him for 1st time then text started flashing and i couldnt pick anything aftre
    That usually happens when you press a key that it can't recognize, such as a letter, or if you put in a lot of numbers.

    The variable that reads the user's input is a small one, so it can be overloaded easily.
    "We're playing in the same sandbox. Why can't we be nice to each other?"

  4. #14
    variable's Avatar
    Join Date
    Dec 2010
    Location
    Neverland
    Posts
    91

    Re: Army RPG Battling System

    Quote Originally Posted by Kody104
    Quote Originally Posted by wayneo
    bug report : aftre i killed him for 1st time then text started flashing and i couldnt pick anything aftre
    That usually happens when you press a key that it can't recognize, such as a letter, or if you put in a lot of numbers.

    The variable that reads the user's input is a small one, so it can be overloaded easily.

    An integer. Am I right?

  5. #15
    Senior Member
    Join Date
    Jun 2010
    Location
    Southern USA
    Posts
    1,221

    Re: Army RPG Battling System

    Quote Originally Posted by BladeX
    Quote Originally Posted by Kody104
    Quote Originally Posted by wayneo
    bug report : aftre i killed him for 1st time then text started flashing and i couldnt pick anything aftre
    That usually happens when you press a key that it can't recognize, such as a letter, or if you put in a lot of numbers.

    The variable that reads the user's input is a small one, so it can be overloaded easily.

    An integer. Am I right?
    Yep.

    And it's short and unsigned, which now that I think of it, it's a bad idea for a user input variable to be short because the game can crash
    "We're playing in the same sandbox. Why can't we be nice to each other?"

  6. #16
    variable's Avatar
    Join Date
    Dec 2010
    Location
    Neverland
    Posts
    91

    Re: Army RPG Battling System

    Don't know about .NET but in VB 6, Using Val() returns the given argument as double and if it was non-numeric, returns zero.
    You might wanna try that and it also sorts out the code..

  7. #17
    router's Avatar
    Join Date
    Dec 2009
    Posts
    223

    Re: Army RPG Battling System

    It's written in c++
    In the process of [insert status here]
    May post from time to time.

  8. #18
    Senior Member
    Join Date
    Jun 2010
    Location
    Southern USA
    Posts
    1,221

    Re: Army RPG Battling System

    Quote Originally Posted by BladeX
    Don't know about .NET but in VB 6, Using Val() returns the given argument as double and if it was non-numeric, returns zero.
    You might wanna try that and it also sorts out the code..
    It's actually pretty easy to change an integer to a double or float value.

    When you declare the value, instead of naming it "int Select" you could just use "double Select" to make it a double, and the same with float
    "We're playing in the same sandbox. Why can't we be nice to each other?"

  9. #19
    variable's Avatar
    Join Date
    Dec 2010
    Location
    Neverland
    Posts
    91

    Re: Army RPG Battling System

    Yeah I know. I thought it was in .NET

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •