Minor shop bug

Discussion in 'Closed' started by orangelist, Mar 13, 2021.

  1. orangelist
    Offline

    orangelist Donator

    Joined:
    May 22, 2020
    Messages:
    261
    Likes Received:
    122
    Gender:
    Male
    Country Flag:
    IGN:
    orangelist
    I sold some expensive items and then check on the ITEMS AVAILABLE and this what it said about the money
    upload_2021-3-13_23-50-39.png
     
  2. doronos
    Offline

    doronos Well-Known Member

    Joined:
    Sep 29, 2016
    Messages:
    184
    Likes Received:
    227
    Gender:
    Male
    I think it's because u passed the max mesos (which is 2^31 - max positive integer representation of int32)
    If u get more than that then u get 1 on the 32nd bit which tells the system if it's + or -. I think a fix for that would be going into the client and change the type for all int to some long or whatever... not sure if the devs can do it. If you really care about this number I'm pretty sure that they can make it that stores cannot sell for more than 2^31 mesos at a time (but then it will mean that after u sold the king cent u won't sell anything till you reopen. I'm pretty sure u don't want that)
     
  3. orangelist
    Offline

    orangelist Donator

    Joined:
    May 22, 2020
    Messages:
    261
    Likes Received:
    122
    Gender:
    Male
    Country Flag:
    IGN:
    orangelist
    yea ofc I know the reason for this and max int is 2^31-1
     
  4. Kenny
    Offline

    Kenny Donator

    Joined:
    Dec 31, 2018
    Messages:
    4,729
    Likes Received:
    5,000
    Country Flag:
    IGN:
    Shadower
    Level:
    200
    Thanks for your report! I have forwarded this to our developers
     

Share This Page