View Single Post
  #2  
Old 02-24-2006, 06:29 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
You can't call serverside functions clientside.

My suggestion:

PHP Code:
// In your weapon
function onActionServerside()
{
  
player.triggerclient(params[0], this.namethis.itemDesc());
}

// In your GUI script
//#CLIENTSIDE
function onCreated() // or whatever...
{
  
triggeraction(00"serverside"weaponname.namethis.name);
}

function 
onActionClientside()
{
  
item_desc_text.text params[1];

Reply With Quote