16.04.2013, 18:42
PHP Code:
PlayerName(playerid){
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
PHP Code:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
PHP Code:
new PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME];
OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
strmid(PlayerName(playerid), name, 0, strlen(name), MAX_PLAYER_NAME);
}
Какой вариант лучше?