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 11-06-2007, 01:06 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Player classes

I am having trouble with player classes. I have asked many people, but they can't seem to find out whats wrong.
Heres my test scripts:

class 'playert1':
PHP Code:
//#CLIENTSIDE
function Test()
{
  
this.chat "test";

weapon 'Test':
PHP Code:
//#CLIENTSIDE
function onCreated()
  
player.join("playert1");

function 
onWeaponFired()
  
player.Test(); 
Now, alot of people told me not to join classes clientside, but I have tried joining the class serverside, when the player logs on, etc.
And it still didnt work. The problem is the class isnt being joined...
And idk why not, when I echo player.joinedclasses it only echoes startgui,
So, i'm not sure why the class isnt being joined. Any help?
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 08:21 PM.


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