[FluxEmu] Credits Balance Update

Kashi

Member
Jun 1, 2014
62
2
Hello Devbest! I have a question regarding Credits Balance Update in Database.

I somehow managed to add credits bar under current stats bar in client. And it fetched data from users credits in database, but somehow it doesn't get updated until I logout from client, which means it's completely useless.
Also I used custom Habbo.swf that removed Credits from the upper right corner in client so that I can see the balance right from the image below.


Same problem occurs in me.php or any pages that has credits balance, the thingy just dont get updated until I completely log off from the client itself. Do I need to add something in code so it gets updated everything I spent money without getting off from client? Any help would be appreciated, thanks!
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
In the emulator Habbo.cs file, I would change the Credits to be public property and in the set, method call a function that updates the credit balance in the database.

This will resolve your issue.
 

Users who are viewing this thread

Top