06.05.2014, 16:00
Or you can do the following:
and you can use: PlayerName(playerid)
However make sure that you do not use it in invalid (not connected) players because a run time error 4 will be caused.
EDIT: You don't need an array at all, take a look here: http://forum.sa-mp.com/showpost.php?...58&postcount=4
pawn Код:
// global:
new Player_Name[MAX_PLAYERS][MAX_PLAYER_NAME];
#define PlayerName(%0) Player_Name[%0]
// OnPlayerConnect:
GetPlayerName(playerid, Player_Name[playerid], MAX_PLAYER_NAME);
However make sure that you do not use it in invalid (not connected) players because a run time error 4 will be caused.
EDIT: You don't need an array at all, take a look here: http://forum.sa-mp.com/showpost.php?...58&postcount=4

