Loading...
  1. Dismiss Notice
  2. Dismiss Notice
  3. Dismiss Notice
  4. Dismiss Notice
  5. Dismiss Notice
  6. Dismiss Notice
  7. Dismiss Notice
  8. If this is your first visit, you may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

About the AP Bug

Discussion in 'Old Threads' started by Zyrekx, Oct 30, 2010.

  1. Zyrekx

    Zyrekx Proficient

    Joined:
    Jul 12, 2010
    Messages:
    189
    Likes Received:
    6
    Trophy Points:
    0
    if it's a problem with the built in programming of integer or something like that in the counting of AP..

    i could suggest doing this..

    change the code to..

    two vars x and y and z

    x and y will be used for integer and z for the String

    what happens is that there's a problem with reaching more than max of the built in programming of integer.. like 2B something.. sooooo..... you'll have to cut the 2B part and put the other number to another variable..

    so this happens..

    x=2, y=123,456,789

    everyrime y reaches more than 999,999,999
    x=x+1
    z = integertostring(x+y)

    result.. z=2123456789.. :D

    the only problem you got there is how to insert 0s if y looks like this..

    x=2,y=0

    z=integertostring(x+y)

    the result would be
    z=20

    another example

    x=2,y=20000

    z=integertostring(x+y)

    the result would be
    z=220000

    tyman gave the solution for that..

    while(b.length<9)
    {
    a+="0";
    b=a+y;
    }
    z=x+b;
    a="";
    b="";

    z=2000020000

    anyway.. i'm jst a noob programmer.. you've got to knw already bout my suggestion or you got better solutions to the prob.. :D
     
    Last edited: Nov 1, 2010
  2. Prestige

    Prestige Well-Known Member

    Joined:
    Jun 13, 2010
    Messages:
    1,513
    Likes Received:
    149
    Trophy Points:
    283
    Location:
    New York, NY
    Too many numbers... and math -explodes-
     
  3. Zyrekx

    Zyrekx Proficient

    Joined:
    Jul 12, 2010
    Messages:
    189
    Likes Received:
    6
    Trophy Points:
    0
    hahahaha.. :D and prest.. that was a fast post i jst posted this in a sec.. o_O
     
  4. harvard1932

    harvard1932 Expert

    Joined:
    Oct 3, 2010
    Messages:
    944
    Likes Received:
    33
    Trophy Points:
    248
    Location:
    US
    :O
    Math pro right here
     
  5. Zyrekx

    Zyrekx Proficient

    Joined:
    Jul 12, 2010
    Messages:
    189
    Likes Received:
    6
    Trophy Points:
    0
    o: your name says harvard.. o_O
     
  6. tyman

    tyman Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    1,645
    Likes Received:
    213
    Trophy Points:
    283
    Location:
    OC MD
    while(z.length <10)
    {
    z +="0";
    }

    possible fix for ur problem that u had
     
  7. Koral13579

    Koral13579 That guy

    Joined:
    Oct 23, 2010
    Messages:
    267
    Likes Received:
    53
    Trophy Points:
    0
    Location:
    Guess who? Chicken poo
    Very nice at coding? lol
     
  8. harvard1932

    harvard1932 Expert

    Joined:
    Oct 3, 2010
    Messages:
    944
    Likes Received:
    33
    Trophy Points:
    248
    Location:
    US
    Cough.
    Oh yea btw. AP isnt bugged. It is just not visual to you. But the actual point is added.
     
  9. tyman

    tyman Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    1,645
    Likes Received:
    213
    Trophy Points:
    283
    Location:
    OC MD
    they could just go, and edit the hard coded limit, which is a violation of the ToS....
     
  10. Zyrekx

    Zyrekx Proficient

    Joined:
    Jul 12, 2010
    Messages:
    189
    Likes Received:
    6
    Trophy Points:
    0
    ok.. o_O jst giving my thoughts.. :D

    ---------- Post added at 08:32 AM ---------- Previous post was at 08:29 AM ----------

    let me change this part though..

    while(z.length<10)
    {
    a+="0";
    z=x+a+y
    }
     
  11. tyman

    tyman Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    1,645
    Likes Received:
    213
    Trophy Points:
    283
    Location:
    OC MD
    it would have to be

    while(z.length<10)
    {
    a+="0";
    }

    z=x+a+y;
    a = "";

    b/c the next time z.length<0

    a would already be 0000000
    then it would be like 30000000000000001.
     
  12. Zyrekx

    Zyrekx Proficient

    Joined:
    Jul 12, 2010
    Messages:
    189
    Likes Received:
    6
    Trophy Points:
    0
    changed it to

    while(z.length<10)
    {
    a+="0";
    z=x+a+y;
    }
    a="";

    o: i'm learning something here..

    ---------- Post added at 08:39 AM ---------- Previous post was at 08:36 AM ----------

    sorry bout that.. don't knw how to call the prob..
     
  13. Zyrekx

    Zyrekx Proficient

    Joined:
    Jul 12, 2010
    Messages:
    189
    Likes Received:
    6
    Trophy Points:
    0
    changed it again to

    while(b.length<9)
    {
    a+="0";
    b=a+y;
    }
    z=x+b;
    a="";
    b="";

    there.. :D
     
  14. Enciel

    Enciel Proficient

    Joined:
    Aug 16, 2010
    Messages:
    288
    Likes Received:
    74
    Trophy Points:
    0
    i don't think any algorithm can solve the cap, as the cap is determined by a number system in the code (unless someone ofc volunteers to make a number system composed of more than 32 bits ;) )
     
  15. itsaleckz67

    itsaleckz67 Legendary Member

    Joined:
    Aug 17, 2010
    Messages:
    2,636
    Likes Received:
    181
    Trophy Points:
    313
    Location:
    check your room mate..
    im bleeding so hard. xD
    :lol:
     
  16. Eyeshielder

    Eyeshielder Well-Known Member Forum Legend

    Joined:
    Aug 1, 2010
    Messages:
    1,998
    Likes Received:
    364
    Trophy Points:
    333
    Location:
    North Carolina
    lol... like this tread ^_^
     
    1 person likes this.
  17. Hardstyle

    Hardstyle ***** Slap Forum Legend

    Joined:
    Aug 3, 2010
    Messages:
    1,288
    Likes Received:
    740
    Trophy Points:
    368
    Location:
    Veghel, Netherlands
    i bet its already in the code, since max kinah in inventory got raised aswell, and was also capped at 2.1 bil.
    Wich prolly for the same reason.
     
  18. Jessica

    Jessica Guest

    i know some codes, and i quite understand algos but i think this one is way out of my reach for now coz i dont know what language it is or how the language handle the codes. coz i cant make out anything on it using my programming knowledge, thus noob.
     
  19. Zyrekx

    Zyrekx Proficient

    Joined:
    Jul 12, 2010
    Messages:
    189
    Likes Received:
    6
    Trophy Points:
    0
    that's why i'm trying to make an algorithm that would use two number system composing of 32 bits.. thus you could use 64 bits of number system.. :D

    but yeah.. i'm jst giving a suggestion.. :D

    ---------- Post added at 12:55 AM ---------- Previous post was at 12:52 AM ----------

    haha.. :kewl:
     

Share This Page