View Single Post
  #11  
Old 01-25-2010, 09:04 PM
Grey Grey is offline
Classic Developer
Grey's Avatar
Join Date: Mar 2007
Location: Wales, UK
Posts: 134
Grey will become famous soon enough
Send a message via AIM to Grey
Quote:
Originally Posted by fowlplay4 View Post
Stuff
Appreciated you can do that if you have access to a var referencing the obj but what I was trying to do something along the lines of:

PHP Code:
//#CLIENTSIDE
function addToList(account) {
  
this.objs.add(new TStaticVar(@account));


function 
checkList() {
  return (
player.account in this.objs);

Which on the serverside would work. (If you changed checkList to be serverside friendly)

Was trying to see if I was doing it wrong somehow as if you output the array, rather than each of the objects having the name you'd assigned them, they all have blank names.

I'll just change the way its being handled but thanks guys
Reply With Quote