View Single Post
  #9  
Old 07-24-2012, 11:42 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Stefan added a findplayer2 (which now accepts both account and community names) function, which kind of breaks my code snippet.

I've since used this code instead of my findplayer2 function:

PHP Code:
function onCreated() {
  
// Load Player
  
temp.pl findplayer(acct);
  
temp.offline temp.pl == NULL;
  
temp.pl temp.offline ? new TServerPlayer(@acct) : temp.pl;
  
// Manipulate player object...
  // Save and destroy
  
if (temp.offline) {
    
temp.pl.saveaccount();
    
temp.pl.destroy();
  }

__________________
Quote:
Reply With Quote