View Single Post
  #20  
Old 07-24-2012, 03:26 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by BlueMelon View Post
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 View Post
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 View Post
And referencing a pl object won't do you no good if it doesn't even exist.
Quote:
Originally Posted by cbk1994 View Post
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.
__________________
Reply With Quote