What way is better for that?
#7

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;
}
Reply


Messages In This Thread
What way is better for that? - by Riwerry - 24.12.2013, 16:57
Re: What way is better for that? - by Konstantinos - 24.12.2013, 17:00
Re: What way is better for that? - by Riwerry - 24.12.2013, 17:09
Re: What way is better for that? - by Konstantinos - 24.12.2013, 17:11
Re: What way is better for that? - by Riwerry - 24.12.2013, 17:14
Re: What way is better for that? - by HardRock - 24.12.2013, 17:17
Re: What way is better for that? - by Konstantinos - 24.12.2013, 17:20
Re: What way is better for that? - by Riwerry - 24.12.2013, 17:20

Forum Jump:


Users browsing this thread: 3 Guest(s)