Quote:
|
Originally Posted by Don Correlli
Quote:
|
Originally Posted by S2D.Alone_ (RU)
Alternate of Playername(playerid);
pawn Код:
new PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME]; //To upper
GetPlayerName(playerid, PlayerName[playerid], MAX_PLAYER_NAME); //to OnPlayerConnect
Usage example:
format(string, sizeof(string), "%s has blowed up", PlayerName[playerid]);
|
Useless..
pawn Код:
stock PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); return name; }
format(string, sizeof(string), "%s", PlayerName(playerid));
|
There is always the memory wasting way which is usually faster and the normal way
And he said "Alternate of PlayerName(playerid);"