Thread: sendtorc2
View Single Post
  #8  
Old 01-27-2008, 04:11 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 Inverness View Post
Those commands would not require an array to determine who to send to, it would simply send to the current player object (the player executing the script).

Which can be changed using a with block.
Yes, that is typically the way programming systems would do it, but Graal would probably go the other approach with the array, simply because it is easier.

Actually, I suppose it might be just as easy to do something like:

findPlayer( "cbk1994" ).echo2( "foo" );

and then you would be able to make a function like
PHP Code:
public function massItaccsmsg )
{
  for ( 
temp.accs )
  {
    
findPlayertemp.).echo2msg );
  }

__________________
Reply With Quote