Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.