18.11.2010, 00:52
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,
Basically, making it run an extra function to do the same thing. So you are better off writing your code like so:
pawn Код:
new pName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, pName, sizeof( pName ) );
// This is basically telling the compiler:
GetPlayerName( playerid, pName, sizeof( 24 ) );
pawn Код:
PlayerName( playerid )
{
new pName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, pName, MAX_PLAYER_NAME );
return pName;
}