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

how do i save a string....

Код:
#include <a_samp>
new left[MAX_PLAYERS];

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

public OnPlayerDisconnect(playerid, reason)
{
    new name[MAX_PLAYER_NAME]
	GetPlayerName(playerid, name, sizeof(name));
	left[playerid] = name;
	return 1;
}
this is wrong, but you get the point, i want to save a string(the payers name).


help = rep+
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)