Simple help :D
#5

Quote:
Originally Posted by SpikeSpigel
Посмотреть сообщение
Код:
enum pInfo
{
	pPass,
	pCash,
	pAdmin,
	pKills,
	pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo]; // In the upper part of the script.

CMD:stats(params, playerid) // In the lower part of the script.
{
	new pName[MAX_PLAYER_NAME], string[126];
	GetPlayerName(playerid, pName, sizeof(pName));
	
	if(IsPlayerConnected)
	{
		format(string, sizeof(string), "________________%s's stats_______________", pName);
		format(string, sizeof(string), "Money: %d , Kills: %d , Deaths: %d", PlayerInfo[playerid][pCash], PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths]);
		format(string, sizeof(string), "________________________________________");
		SendClientMessage(playerid, -1, string);
	}
	else
	{
		SendClientMessage(playerid, -1, "You are not connected.");
	}
	return 1;
}
Didn't work
Reply


Messages In This Thread
Simple help :D - by MichaelJones - 05.08.2015, 21:34
Re: Simple help :D - by SpikeSpigel - 05.08.2015, 21:37
Re: Simple help :D - by Fancy - 05.08.2015, 21:43
Re: Simple help :D - by SpikeSpigel - 05.08.2015, 21:49
Re: Simple help :D - by MichaelJones - 05.08.2015, 22:18
Re: Simple help :D - by SpikeSpigel - 05.08.2015, 23:53
Re: Simple help :D - by StuartD - 05.08.2015, 23:57
Re: Simple help :D - by SpikeSpigel - 06.08.2015, 11:04

Forum Jump:


Users browsing this thread: 1 Guest(s)