![]() |
getguildnick(guild, account)
So, does this feature work? I think not.
Working on a basic tag feature, can anyone see why? HTML Code:
function onPlayerChats() |
Maybe you would like to explain why the code is not working and what behaviour you are expecting. :|
|
right.
PHP Code:
If answer is to be yes, what am I doing wrong. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
You don't call onPlayerChats() on serverside ...
|
ok... explain why not? Also explain how it works for that matter. Thank you.
|
Quote:
Use a triggerServer();. |
You're making no sense. You are aware of what a class is right?
|
And you're aware of the fact that classes also have a clientside and serverside right?
If the object is in a level and you want to send info to the serverside, then you can set a shape to the object on both sides and trigger an action on the object with the parameters you need, the action will be called on serverside & clientside as a result. |
I know of format() but not of format(_()) whats that do?
|
Lets move along from the calling of the function. Is anyone else having any problems with
PHP Code:
Just more organized. PHP Code:
|
Quote:
PHP Code:
P.S: PHP Code:
|
I've used player.chat/onPlayerChats on Serverside and it worked fine, well it was a Tad slower but it still worked none the less
EDIT: Also I've never really heard of this function. What exactly are you trying to do? Add the guild tag to the player no matter what their nick is? Maybe something else? |
Quote:
Quote:
Thank you :) Upon debugging with a friend, we found the error. Thanks |
*shrug*
You need to be more specific next time. |
Yeah, I guess when people don't understand how a class or a level object work it can be rather difficult.
Quote:
|
Newbs.
onPlayerChats() only doesn't work on serverside in a wNPC, if its in a local npc/class/DB it WILL work serverside. And to answer your question Chandler, yes - your getguildname(guild, account) will (should) work, I've used it in the same way and it works. I refer you to this thread: http://forums.graalonline.com/forums...ad.php?t=71885 |
Quote:
|
Quote:
|
Lol @ the "lol nub onPlayerChats can't be called serverside?!?!?!"
Perhaps you were thinking about ChatBar.onAction? That can't be read serverside ^^. If you have onPlayerChats serverside in a weapon, everyone in that level can call that event - even if only one player has it. |
Quote:
EDIT: I just tried it, it didn't work. I tried to make a wNPC with only a serversided onPlayerChats and I tried making one with some useless script on clientside and a onPlayerChats serverside. None worked. |
Quote:
|
What the hell are you guys talking about...onPlayerChats is a global function both serverside and clientside o_O
|
Quote:
|
Quote:
But for TServerNPC's it DEFINATLY is serverside o_O |
Quote:
|
The only time I ever use onPlayerChats is for weapons so excuse me...
|
Quote:
|
Quote:
I do have a vague recollection of maybe using it for an npc sometime though... |
rofl, you were still wrong :p
|
| All times are GMT +2. The time now is 05:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.