Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-31-2006, 04:48 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Join Class Clientside

//#CLIENTSIDE
function onCreated() {
this.guild = "Test";
join("guildcomp");
}


How come in the class on clientside, if I am to do
//#CLIENTSIDE
function onCreated()
player.chat = this.guild;

Nothing happens..? I can't have clientside classes w/ flags set? I am pretty sure CheeToS said you could.
Reply With Quote
  #2  
Old 05-31-2006, 05:05 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
Because 'guild' is a predefined (err... wrong word but you should get what I mean) variable and shouldn't be used.
Reply With Quote
  #3  
Old 05-31-2006, 07:08 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Also, if you are going to have a //#CLIENTSIDE in the class, you should do:

join("classname");
//#CLIENTSIDE
scriptstuffhere
Reply With Quote
  #4  
Old 05-31-2006, 01:09 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
I've had CheeToS come on before and try what Warcaptain has said w/ Totally different numbers a while back
Reply With Quote
  #5  
Old 05-31-2006, 08:07 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The class first needs to be downloaded, so the onCreated function of guildcomp will probably never be called. It should work though when a second object is joining guildcomp, since then the class is already loaded.

Most of the time you don't need to join on clientside though, it's more safe to join on serverside since the server will make sure that you have the class before telling the client that the object joined the new class. Clientside-joining is really only needed in combination with TStaticVar.
Reply With Quote
Reply


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 10:00 AM.


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