View Single Post
  #2  
Old 01-18-2011, 07:54 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Classes have loading issues on the client-side, just join them on the serverside and use an attr variable. I.e:

PHP Code:
function onCreated() { 
  
this.windowtype="1b"
  
this.join("window"); 

PHP Code:
function onCreated() {
  
this.attr[1] = this.windowtype;
}

//#CLIENTSIDE
function onCreated() { 
  
this.setShape(13232); 
  
showimg(200"sorna_window"@this.attr[1]@"_glass.png"this.xthis.y); 
  
changeimgcolors(2001110.7); 
  
changeimgvis(2000); 
  
showimg(201"sorna_window"@this.attr[1]@"_frame.png"this.xthis.y); 
  
changeimgvis(2011); 

__________________
Quote:
Reply With Quote