View Single Post
  #5  
Old 06-18-2006, 05:50 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Quote:
Originally Posted by ApothiX
You cannot call clientside functions from the serverside. Try something more along the lines of this:

PHP Code:
 bla bla a lot of **** here.. 
From you, I'd expect something 20 times better.. fool.. you are creating lag for him!

What you should do is reserve a few player.attr[ index]'s for stats, so that you can load them clientside.

Example:
--------
Every player has this in a clientside script:
PHP Code:
//#CLIENTSIDE
function statUpdate() {
  
temp.statarray = { client.stat1client.stat2};
  for ( 
0temp.statarray.size(); ++)
    
player.attr10 i] = temp.statarrayi];

The fact I did player.attr[ 10 + i] is because 1 - 5 could be reserved for custom bodies (in case you'd get those later).

A clientside script for loading:
PHP Code:
//#CLIENTSIDE
function loadStatsplr) {
  
temp.statarray2 = new[ 2];
  for ( 
02++) 
    
temp.statarray2i] = findPlayerplr).attr10 i];

__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote