View Single Post
  #12  
Old 12-20-2011, 11:58 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
Quote:
Originally Posted by Alpho View Post
Oh thanks, I see that now. This works:

how do you suppose I can get the 'player' object, 'in sight' ?
If you're trying to set the value when the player logins you can do so in the onActionPlayerOnline function in Control-NPC or onPlayerLogin in other scripts.

If you want to 'find' the player object you can do like this:

findplayer("Graal756204").clientr.flag = this.acc_Graal756204;

or you can use with a statement:

PHP Code:
function onCreated() {
  
this.acc_Graal756204 4;
  
with (findplayer("Graal756204")) {
    
// You have to use thiso instead of just this because the 
    // with statement changes the scope to the player object.
    
clientr.flag thiso.("acc_" player.account);
  }

__________________
Quote:
Reply With Quote