View Single Post
  #3  
Old 06-17-2006, 09:54 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Omini
How would I go about displaying a persons client(r) strings in a GUI?

Would it be something like

PHP Code:
... 

If not, how would I be able to do it?
You cannot call clientside functions from the serverside. Try something more along the lines of this:

PHP Code:
function onActionServerside() {
  if(
params[0] == "fetchinfo") {
    
with(findPlayer(params[1])) {
      
temp.statarray = { client.stat1client.stat2/* Etc */ };
    }

    
player.triggerclient("gui"this.name"retreiveinfo"temp.statarray);
  }
}

//#CLIENTSIDE
function onActionClientside() {
  if(
params[0] == "retreiveinfo") {
    
this.stat1 params[1][0];
    
this.stat2 params[1][1];
    
// etc
    
NewGuiWindow();
  }
}

function 
onCreated() {
  
triggerserver("gui"this.name"fetchinfo""KewlPlayer001");

__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote