save string (new left[MAX_PLAYERS];)
#2

pawn Код:
#include <a_samp>

new strLeft[MAX_PLAYERS][MAX_PLAYER_NAME];

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, -1, "%s has left before you.", strLeft[playerid]);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    GetPlayerName(playerid, strLeft[playerid], MAX_PLAYER_NAME);
    return 1;
}
Reply


Messages In This Thread
save string (new left[MAX_PLAYERS];) - by ic3cr3am - 09.12.2013, 10:53
Re: save string (new left[MAX_PLAYERS];) - by Dolby - 09.12.2013, 10:58
Re: save string (new left[MAX_PLAYERS];) - by Threshold - 09.12.2013, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)