View Single Post
  #9  
Old 01-02-2011, 12:51 AM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
Quote:
Originally Posted by cbk1994 View Post
This. triggerServer and triggerClient definitely work with arrays.
It does? Well that's good to hear.

But I still don't see why this doesn't work:
NPC Code:
function onActionServerSide(param) {
if(param==null) {
temp.categories=player.getCategories();
triggerClient("gui", this.name, categories);
}
}
//#CLIENTSIDE
function onCreated() {
this.setshape(1,32,64);
this.chat="Touch me to find out how many categories you have";
}
function onPlayerTouchsMe()
{
triggerServer("gui", this.name,null);

}
function onActionClientSide(categories) {
this.chat="Categories: " @ categories.size() @ " first category: " @ categories[][];
}


Maybe it's just too late. Thanks for the help, I'm heading to bed now.
Reply With Quote