View Single Post
  #1  
Old 06-17-2006, 09:26 PM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
Client.strings + GuiTextCtrl

How would I go about displaying a persons client(r) strings in a GUI?

Would it be something like

PHP Code:
function onActionserverside()
  {
  if (
params[0] == "findinfo") {
      
with (findplayer(params[1])) {
      
thiso.stat1 client.stat1;
      
thiso.stat2 client.stat2;
      
thiso.stat3 clientr.stat3;
      
NewGuiWindow();
    }
  }
}
//#CLIENTSIDE
function onCreated()
  {
  
NewGuiWindow();
  
triggeraction(0,0,"serverside",name,"findinfo",target);
}

function 
NewGuiWindow()
  {
  new 
GuiWindowCtrl(Window) {
    
awake true;
    
canmaximize false;
    
canresize false;
    
height 180;
    
profile "GuiRedTransWindowProfile";
    
text "Title";
    
visible true;
    
width 160;
    
0;
    
120;

    new 
GuiTextCtrl(Text) {
      
10;
      
25;
      
width 140;
      
height 20;
      
useownprofile true;
      
profile.fontcolor = {1,1,1};
      
text thiso.stat1;
    }
  }


If not, how would I be able to do it?
__________________



Reply With Quote