Переполнение стека
#3

PHP Code:
PlayerName(playerid){
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    return 
name;

вместо этого лучше везде использовать
PHP Code:
new name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name)); 
или
PHP Code:
new PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME];
OnPlayerConnect(playerid)
{
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
strmid(PlayerName(playerid), name0strlen(name), MAX_PLAYER_NAME);

?
Какой вариант лучше?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)