Jump to content
MakeWebGames

Recommended Posts

Posted

I was just wondering what the purpose of having decimals for stats (strength, agility, labour, etc)? Wouldn't it be just as good to make them whole integers? I'm asking because I want to change my stats to ints but don't want screw them up if they have a good reason to be decimals.

Posted

you can take that crap off. i didnt like those either. but when you put that table in it was set as decimal. you will have to change it in the table itself.

i have not seen any bad effects from this change. cant see anything that you would have to leave it as a decimal for anyhow

Posted

got to ur database then find 'userstats' then view the table structure then edit each of them and change the type from 'decimal' to 'int' and the length values to '11' and the default to 'as defined'

and you will probably want to change your training equation so u will get a non-decimal number even if u dont tho it will be ok as it will round down or up after u reload the page but no theres no problems i have seen with it

i have a question with this tho ok so the int 11 makes the max number ur stuff can go to '2147483647' but how can i make this bigger?

ive tried changing the value to numbers higher than 11 but that didnt work and then i tried changing the int to big int but that didnt work but i did see when changing these things that they were saying no index found could this have anything to do with it or am i just doing something wrong?

Posted

instead of changing it to (int)11 change it to (bigint)65

that should let u get stats above the '2147483647' cap...

btw when u edit your self through the admin panel it will not go over cap cause you have to change those files too, but if you change it in the database it should stick...

cheers

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...