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