Thread: Gui Profiles.
View Single Post
  #7  
Old 07-24-2013, 05:26 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Stowen View Post
After it is created the first time, and you didnt properly destroy() the window, it will not reload.

Just add this on clientside:

PHP Code:
function onCreated() {
  
GUI_Window_Name.destroy();

That wasn't his problem. He wouldn't see anything about addControl in RC unless the code was being executed serverside.

Also you shouldn't destroy the window in onCreated, especially without checking if it even exists. Just set visible = true explicitly when you create a new control if you're worried it may have been closed earlier (or just check if it exists and show it if so, depends on the situation, but you should never just blindly destroy it).
__________________
Reply With Quote