BlueDevil23 Posted May 16, 2009 Posted May 16, 2009 The usual, but I added the option to either show the houses as a list(like the original) or in a table. Not sure why I did this... lol.. but I did. Guess I figured some might like the original look of the list. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
E-Studios Posted May 16, 2009 Posted May 16, 2009 Re: [mccode v2] Estate Recode Well done Blue.. Looking Good man. +1 From Me Man Quote
Strats Posted May 16, 2009 Posted May 16, 2009 Re: [mccode v2] Estate Recode Just added It Looks very nice :) But I am having a little trouble. If I add this should I re add my houses? When I buy a house it says : Congrats, you bought the ****** for $0! And when you go to estate the prices do not show up right. They show like this: Stratusphere Cost: $5 Will Bar: 1000 When it actually costs $5000000 When I buy it, it still takes the correct money from me. Also If someone makes a mistake and refreshes the page it takes the money twice lol Quote
Faz` Posted May 16, 2009 Posted May 16, 2009 Re: [mccode v2] Estate Recode May I ask Blue, how far have you come into recoding every file? :P Quote
BlueDevil23 Posted May 16, 2009 Author Posted May 16, 2009 Re: [mccode v2] Estate Recode Code Updated. Sorry bout' that Strats, I accidentally put number_format(abs(@intval($np['hNAME']))) when it was supposed to be number_format(abs(@intval($np['hPRICE']))) .. yet it was being cast to an integer, so thats why it simply showed as 0. Quote
BlueDevil23 Posted May 16, 2009 Author Posted May 16, 2009 Re: [mccode v2] Estate Recode May I ask Blue, how far have you come into recoding every file? :P Just what I've posted, plus a gym. Quote
gurpreet Posted May 17, 2009 Posted May 17, 2009 Re: [mccode v2] Estate Recode I stil have this: # Jupiter Cost: $225Will Bar: 1500 # Sun Cost: $305Will Bar: 1750 # Milky Way Cost: $500Will Bar: 2250 Whats up with it? Quote
BlueDevil23 Posted May 17, 2009 Author Posted May 17, 2009 Re: [mccode v2] Estate Recode I stil have this: # Jupiter Cost: $225Will Bar: 1500 # Sun Cost: $305Will Bar: 1750 # Milky Way Cost: $500Will Bar: 2250 Whats up with it? What's wrong with it ? Quote
gurpreet Posted May 17, 2009 Posted May 17, 2009 Re: [mccode v2] Estate Recode Those are the 3 best houses, sposed to cost 500 billion for the last one, 305b for sun, 225B for jupiter. It's the problem strats had, wanna post up your whole new Estate? I put in the new thing you posted 2 or 3 posts back but still nothing Quote
BlueDevil23 Posted May 17, 2009 Author Posted May 17, 2009 Re: [mccode v2] Estate Recode Those are the 3 best houses, sposed to cost 500 billion for the last one, 305b for sun, 225B for jupiter. It's the problem strats had, wanna post up your whole new Estate? I put in the new thing you posted 2 or 3 posts back but still nothing Oh.. didn't realize the prices were so huge. I see the problem now. Give me a min. EDIT: original code updated, give that a try. Quote
Strats Posted May 17, 2009 Posted May 17, 2009 Re: [mccode v2] Estate Recode Nice nearly done lol But when I buy the house it stills says brought for $10 lol Quote
BlueDevil23 Posted May 17, 2009 Author Posted May 17, 2009 Re: [mccode v2] Estate Recode Jeez lol Code updated. That should do it. Quote
Strats Posted May 17, 2009 Posted May 17, 2009 Re: [mccode v2] Estate Recode Perfect :) Thank You Bd! Quote
Miniman Posted May 17, 2009 Posted May 17, 2009 Re: [mccode v2] Estate Recode If you want the number_format() to work properly and have your Prices display as $5,000 and not $5000 Use this... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Oh, and good job again BlueDevil :) Quote
Strats Posted May 18, 2009 Posted May 18, 2009 Re: [mccode v2] Estate Recode Thanks for that :) Quote
gurpreet Posted May 18, 2009 Posted May 18, 2009 Re: [mccode v2] Estate Recode You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It messed up after 20 billion. The numberformat doesn't work properly either Quote
CrazyT Posted May 18, 2009 Posted May 18, 2009 Re: [mccode v2] Estate Recode Just remove abs(@intval and just replace it with echo 'Cost: $'. number_format($r['hPRICE']); Quote
gurpreet Posted May 18, 2009 Posted May 18, 2009 Re: [mccode v2] Estate Recode Ok thanks, +1 for that. How would I make it so it doesn't cap off at 2.1 billion (make it bigint). I tried changing int to bigint but i got errors # Private Space Shuttle Cost: $500000000Will Bar: 787 # Artificial Orbiting Moon Cost: $1000000000Will Bar: 823 # Private Artifical Orbiting Moon Cost: $2000000000Will Bar: 878 # Villa Cost: $2147483647Will Bar: 900 # Private Villa Cost: $2147483647Will Bar: 946 # The Moon Cost: $2147483647Will Bar: 1000 Quote
gurpreet Posted May 20, 2009 Posted May 20, 2009 Re: [mccode v2] Estate Recode If I sell any house above 2.1 billion, just refunds 2.1 billion. So in theory, with the best house on my game if you sold it you stand to lose like..497.9 billion. Quote
BlueDevil23 Posted May 21, 2009 Author Posted May 21, 2009 Re: [mccode v2] Estate Recode I'm not going to change this in the script, to include this, because I doubt everyone's economy is as bloated(I hope at least) But simply cast the variable that is inserted in the database to bigint and also the variable that displays the price. ie: abs( (bigint) $var); Quote
wolfe Posted May 21, 2009 Posted May 21, 2009 Re: [mccode v2] Estate Recode Yeah, If its a new game i would reconsider your pricing on everything. Quote
CrazyT Posted May 21, 2009 Posted May 21, 2009 Re: [mccode v2] Estate Recode I'm not going to change this in the script, to include this, because I doubt everyone's economy is as bloated(I hope at least) But simply cast the variable that is inserted in the database to bigint and also the variable that displays the price. ie: abs( (bigint) $var); Or abs((float) $var); Quote
gurpreet Posted May 21, 2009 Posted May 21, 2009 Re: [mccode v2] Estate Recode Been up for nearly 600 days, and the highest priced house that someone has atm is 20 billion, considering removing the others. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.