Thread: Help pls?
View Single Post
  #2  
Old 12-25-2009, 06:41 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
Try joining the class serverside. If you join it clientside, the thread isn't halted to wait for the class to be joined.

PHP Code:
function onCreated() {
  
this.join("gladeious_guiprofiles");
}

//#CLIENTSIDE
function onCreated()
{
  
GetProfiles();  
  new 
GuiWindowCtrl("Example_Window_1")
  {
    
//... 
Also, code is a lot more readable if you use [PHP] tags instead of HTML ones .

EDIT: Also, a couple other things I noticed:

First, when you create profiles, you're setting variables in that profile, so you don't need to be setting the variables on the inexistent 'profile' object - it actually won't work this way.

Instead, do this:
PHP Code:
new GuiWindowProfile("Gladeious_Window")
{
  
bitmap "gladeius_gui_window.png";

This goes for all of the profiles.


Secondly, profiles aren't strings, they're objects. Unfortunately, Gscript allows you to set profiles with quotes around them, but it's not proper syntax and Inverness will eat you alive.

PHP Code:
profile Gladeious_Window
__________________
Reply With Quote