
07-24-2012, 03:26 PM
|
|
the fake one
|
 |
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
|
|
Quote:
Originally Posted by BlueMelon
You concat strings using @, so don't place it inside a string (" ")
PHP Code:
"Profile : @pl.nick@";
Would be:
PHP Code:
"Profile: " @ pl.nick ;
Also, you are referencing 'pl' which is a uninitialized variable. Look into using the findplayer() function.
|
ya
Quote:
Originally Posted by Emera
pl.kills, pl.app etc don't go inside a string. They go outside.
PHP Code:
this.text = "Kills:" SPC pl.kills;
|
Quote:
Originally Posted by Crow
And referencing a pl object won't do you no good if it doesn't even exist.
|
Quote:
Originally Posted by cbk1994
As Crow said, pl won't have been set. Use findPlayer(account) to get the player object. Some of that info is only going to be available serverside, though, so you'll have to stuff all the data you need into an array serverside and then send it back to the client to display it.
|
|
|
|
|