07.12.2013, 16:39
I recommend you not to use that useless stock everyone uses for getting the player's name because in case you need to use the name 5 times in a command (an example), you're going to call GetPlayerName 5 times.. the worst method I've ever seen.
Get it once and use it!
Get it once and use it!
pawn Код:
#define GetName(%0) User_Name[%0]
// global:
new
User_Name[ MAX_PLAYERS ][ MAX_PLAYER_NAME ]
;
// OnPlayerConnect:
GetPlayerName( playerid, User_Name[ playerid ], MAX_PLAYER_NAME );