Thread: loadPlayer()
View Single Post
  #1  
Old 08-24-2009, 06:04 AM
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
loadPlayer()

Would be wonderful if there was a way to modify the attributes of offline players. Something like

PHP Code:
temp.pl loadPlayer("cbk1994");
pl.clientr.var = "foo"
If the player is online, loadPlayer should just return the TServerPlayer object (like findPlayer).

I'm not sure what the most effective way to save changes is, but I'm sure it's somehow possible. I'm guessing the garbage collector, which "destroys" the object, could save it once all references to it have been dropped (the function ends)?
__________________
Reply With Quote