Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Issue syncing screen with new text

Author
Message
Ace of Springs
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: Cambodia
Posted: 1st Jun 2012 03:53 Edited at: 1st Jun 2012 03:55
Code in question:



chatbox() function:


variable gold is globally declared as an integer.

Problem is the new "gold: 50" text will not appear on screen until I exit npc chat section and return to main game loop. Cannot figure out why. Probably something stupid and simple but I am stumped.

Ace of Springs
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: Cambodia
Posted: 1st Jun 2012 05:34
So it turns out it was something very simple. Since I resync the screen everytime the chatbox() function is call and don't repaste the text, obviously it would never be seen.

My fix was to put the conditional statement directly in my chatbox() function and it works just fine.

Login to post a reply

Server time is: 2024-11-21 23:37:51
Your offset time is: 2024-11-21 23:37:51