24.12.2013, 17:20
An example:
pawn Код:
#define GetName(%0) Player_Name[%0]
static
Player_Name[MAX_PLAYERS][MAX_PLAYER_NAME];
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, Player_Name[playerid], MAX_PLAYER_NAME);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new
string[38];
format(string, sizeof (string), "%s disconnected", GetName(playerid));
return 1;
}