24.12.2013, 17:09
And when I use this, like you said
Then I need to put into format just GetPlayersName(playerid)?
pawn Код:
new playersName[MAX_PLAYERS][MAX_PLAYER_NAME];
public OnPlayerDisconnect(playerid)
{
playersName[playerid][0] = '\0';
return 1;
}
GetPlayersName(playerid)
{
if(isnull(playersName))
{
GetPlayerName(playerid, playersName, MAX_PLAYER_NAME);
}
return playersName;
}