Differences
#4

None really, however it would be faster to just use the MAX_PLAYER_NAME definition since functions take longer to execute then simply reading numbers. For example,
pawn Код:
new pName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, pName, sizeof( pName ) );
// This is basically telling the compiler:
GetPlayerName( playerid, pName, sizeof( 24 ) );
Basically, making it run an extra function to do the same thing. So you are better off writing your code like so:
pawn Код:
PlayerName( playerid )
{
   new pName[ MAX_PLAYER_NAME ];
   GetPlayerName( playerid, pName, MAX_PLAYER_NAME );
   return pName;
}
Reply


Messages In This Thread
Differences - by zack3021 - 18.11.2010, 00:41
Re: Differences - by Cameltoe - 18.11.2010, 00:43
Re: Differences - by zack3021 - 18.11.2010, 00:46
Re: Differences - by Grim_ - 18.11.2010, 00:52

Forum Jump:


Users browsing this thread: 1 Guest(s)