View Single Post
  #4  
Old 11-24-2009, 04:26 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
PHP Code:
function onCreated() {
  
this.db findnpc("db_registeredguilds");
}

function 
onActionServerSide(actionacton) {
  if (
temp.action == "getImage"){
    
triggerclient("weapon"this.name"getFlag"this.db.guilds.(@player.guild).flag);
  }
}
//#CLIENTSIDE
function onActionClientSide(cmddatadata2) {
  if (
cmd == "getFlag"){
    
Stan_Window_Image.image temp.data;  
    
this.guildflag temp.data;
    
player.chat temp.data;
  }
}
function 
onCreated(){
  
triggerserver("weapon"this.name"getImage");
}
new 
GuiWindowCtrl("Stan_Window") {
    
profile "GuiBlueWindowProfile";
    
useOwnProfile true
    
extent "495 300";
    
50;
    
50;
    
text "Guild Registration Lobby";
    
visible true;
    
canResize false;
    new 
GuiShowImgCtrl("Stan_Window_Image") { 
      
12
      
50
      
width 150
      
height 150
      
image ""
    } 

No need for the DBNPC code using this.
Also make sure object names match; you had a "_" at the end of "Stan_Window_Image" in the clientside trigger.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote