Quote:
Originally Posted by cbk1994
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.