Jump to content
MakeWebGames

[mccode] Money,crystals cap


Mafia Empire

Recommended Posts

  • Replies 67
  • Created
  • Last Reply

Top Posters In This Topic

Re: Money,crystals cap

haha you haven't hit that 2.xx bill cap then. And for fixing that up for a while heres

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

That should last you a good while. While your at it fixing up the bank, sending money, etc change

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

into

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: Money,crystals cap

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

ALTER TABLE `users`

CHANGE `money` `money` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `crystals` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `bankmoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `cybermoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

ALTER TABLE `userstats`

CHANGE `strength` `strength` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `IQ` `IQ` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `agility` `agility` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `guard` `guard` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `labour` `labour` bigint( 92 )NOT NULL DEFAULT '0'

This will work mine one because the one with , at the end doest work so i tryed taking , and it worked

then open staff_users.php v2

find (INT)

 

And replace with (Float)

thanks

Link to comment
Share on other sites

Re: Money,crystals cap

How do you get rid of the decimal places in userstats? It makes it look ugly!! aka...90210.113222434154.

When you start an account, with the lowest property, unless you change it to have even less will, it gives you 10 stat per train.

Link to comment
Share on other sites

  • 3 weeks later...

Re: Money,crystals cap

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

ALTER TABLE `users`

CHANGE `money` `money` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `crystals` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `bankmoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `cybermoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

ALTER TABLE `userstats`

CHANGE `strength` `strength` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `IQ` `IQ` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `agility` `agility` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `guard` `guard` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `labour` `labour` bigint( 92 )NOT NULL DEFAULT '0'

This will work mine one because the one with , at the end doest work so i tryed taking , and it worked

then open staff_users.php v2

find (INT)

 

And replace with (Float)

thanks

 

Error

SQL query:

ALTER TABLE `users` CHANGE `money` `money` bigint( 92 ) NOT NULL DEFAULT '0' CHANGE `crystals` `crystals` bigint( 92 ) NOT NULL DEFAULT '0' CHANGE `bankmoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0' CHANGE `cybermoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

MySQL said:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CHANGE `crystals` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `bankmone' at line 3

 

I get this when i put that in. How can i sort it? I use v1.1 codes.

Link to comment
Share on other sites

Re: Money,crystals cap

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

ALTER TABLE `users`

CHANGE `money` `money` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `crystals` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `bankmoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

CHANGE `cybermoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0'

ALTER TABLE `userstats`

CHANGE `strength` `strength` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `IQ` `IQ` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `agility` `agility` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `guard` `guard` bigint( 92 )NOT NULL DEFAULT '0'

CHANGE `labour` `labour` bigint( 92 )NOT NULL DEFAULT '0'

[/code]

 

Never ever do that with the user stats.

To do userstats you just need to replace a few numbers these are the original numbers:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Just rename the first part of the code from 10 to 92

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

It really works i was testing it and my stats went up to:

Stats Info:

Strength: 99,214,223,234,200,011,344,822,808,748,263,406,361,903,104 [Ranked: 1] Agility: 99,214,742,342,300,009,209,442,067,094,969,171,025,330,176 [Ranked: 1]

Guard: 99,214,234,234,199,994,435,209,344,265,839,831,941,120 [Ranked: 1] Labour: 99,214,723,423,399,996,459,476,023,615,915,747,704,832 [Ranked: 1]

IQ: 99,214,742,342,300,002,710,256,860,846,722,727,804,928 [Ranked: 1] Total stats: 198,726,609,276,499,937,337,431,600,879,931,034,014,056,448 [Ranked: 1]

LOL THATS A LOT

+1 Please!

Link to comment
Share on other sites

Re: Money,crystals cap

Here is the fix for userstats table to change the cap. You do not have to change to BIGINT, you only need to change the variable (11,4) to a higher number. (11) is the total number of place holders, (#,4) or (#,6) is the decimal places in the number. So if you have a cap of “ 9,999,999.9999” you have used up all 11 places. Make the number higher as eg; (20,4) and you have “9,999,999,999,999,999.9999” cap. 20 places 4 decimal places. Simple fix that doesn’t screw up your stats table. :-D

ALTER TABLE `userstats`

CHANGE `strength` `strength` decimal(50,4) NOT NULL default '0.0000',

CHANGE `agility` `agility` decimal(50,4) NOT NULL default '0.0000',

CHANGE `guard` `guard` decimal(50,4) NOT NULL default '0.0000',

CHANGE `labour` `labour` decimal(50,4) NOT NULL default '0.0000',

CHANGE `IQ` `IQ` decimal(50,6) NOT NULL default '0.000000',

Link to comment
Share on other sites

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...