Yen
01-19-2006, 10:04 PM
Alright, people keep telling me that clientside portions of player-joined classes work.
I can't get them to.
Can anyone tell me what I'm doing wrong, or how to do it right? I've tried both 'function' and 'public function'
Nothing is happening.
//#CLIENTSIDE
function onPlayerChats() {
chat = "Zomg";
}
public function Clamp(value,clamp) {
inc = clamp / 2;
nval = value % clamp;
if (nval >= inc) value += (clamp - nval);
else value -= nval;
return value;
}
I can't get them to.
Can anyone tell me what I'm doing wrong, or how to do it right? I've tried both 'function' and 'public function'
Nothing is happening.
//#CLIENTSIDE
function onPlayerChats() {
chat = "Zomg";
}
public function Clamp(value,clamp) {
inc = clamp / 2;
nval = value % clamp;
if (nval >= inc) value += (clamp - nval);
else value -= nval;
return value;
}