Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-10-2006, 07:41 PM
Tom Tom is offline
Grraaaaaw
Tom's Avatar
Join Date: May 2005
Posts: 2,037
Tom is on a distinguished road
Player clientside class functions

In working with Relic, I have encountered numerous programming problems that I do believe shouldn't have bothered me, but has!

For instance, player.func() defined in the ( serverside ) join command with a clientside segment doesn't work:

Example:

PHP Code:
Class pfunc:

function 
onCreated()
{
  echo(
"Class DID join");
}

//#CLIENTSIDE

public function test() 
{
this.chat "test"

PHP Code:
Weapon anything:

function 
onCreated()
{
  
player.join("pfunc");
}

//#CLIENTSIDE

function onCreated()
{
  
player.test(); // GraalScript: Function test not found in script of Weapon anything
  
player.pfunc::test(); // GraalScript: Function test not found in script of Weapon anything

As seen in these codes, the player class does not actually carry over the class functions...

Last edited by Tom; 01-10-2006 at 07:55 PM..
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 06:26 AM.


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