Bug When Buying Stocks

This is a catch all off topic forum to talk about anything not covered by other sections.
Locked
Chris Vogel
Posts: 5140
Joined: Fri Jan 10, 2003 1:14 am

Bug When Buying Stocks

Post by Chris Vogel »

I noticed something a few days ago. When I buy stocks, the current amount of money in my wallet is not updated. For example, I had 828 ICs in my wallet. I bought 820 ICs worth of stock. The wallet amount indicator should say 8 ICs, but it still has the old 828 ICs. :blink:

Archived topic from Iceteks, old topic ID:3054, old post ID:25042
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Bug When Buying Stocks

Post by Red Squirrel »

Did it still say 828 when you went to a different page? Since what happends in the script is that it displays the ammount you curently have before it actually does the transaction. So if you would go to a different page then it should have updated. Let me know if this is not the case though.


Oh and don't hit refresh since it will just do the transaction twice. (will error out too because of how it's designed)

Archived topic from Iceteks, old topic ID:3054, old post ID:25044
Honk if you love Jesus, text if you want to meet Him!
Chris Vogel
Posts: 5140
Joined: Fri Jan 10, 2003 1:14 am

Bug When Buying Stocks

Post by Chris Vogel »

Oh, okay. No, I didn’t go to a different page. That was the page after buying the stocks I think. It does show the correct amount after changing pages.

Shouldn’t the amount be calculated after the transaction?

Archived topic from Iceteks, old topic ID:3054, old post ID:25045
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Bug When Buying Stocks

Post by Red Squirrel »

Yeah I might have to fix that, easiest way is to make it go to a page, then have to click to go back. It has to do with the order things are processed.

Archived topic from Iceteks, old topic ID:3054, old post ID:25046
Honk if you love Jesus, text if you want to meet Him!
Locked