chat in virtual worlds
#7

Quote:
Originally Posted by Daren_Jacobson
Quote:
Originally Posted by Donny
pawn Код:
public OnPlayerText( playerid, text[] )
{
  new
    i,
    world = GetPlayerVirtualWorld( playerid );

  for ( i = 0; i < MAX_PLAYERS; i ++ )
  {
    if ( i != playerid && GetPlayerVirtualWorld( i ) == world )
    {
      SendPlayerMessageToPlayer( i, playerid, text );
    }
  }
  return false;
}
since you only use i inside the loop it would be best to create it at the beggining of the for. 'for(new i...'
It just depends on the way people script
Reply


Messages In This Thread
chat in virtual worlds - by Laurentt - 20.04.2009, 18:22
Re: chat in virtual worlds - by Laurentt - 20.04.2009, 19:05
Re: chat in virtual worlds - by Donny_k - 20.04.2009, 19:13
Re: chat in virtual worlds - by Rks25 - 20.04.2009, 19:14
Re: chat in virtual worlds - by Donny_k - 20.04.2009, 19:30
Re: chat in virtual worlds - by Daren_Jacobson - 20.04.2009, 20:01
Re: chat in virtual worlds - by ICECOLDKILLAK8 - 20.04.2009, 20:06
Re: chat in virtual worlds - by Donny_k - 20.04.2009, 20:30

Forum Jump:


Users browsing this thread: 1 Guest(s)