Unknown Command /stats
#2

Try this:

Код:
CMD:stats(playerid, params[])
{
	new giveid;
	if(!sscanf(params, "u", giveid))
	{
		if(IsPlayerConnected(giveid))
		{
			ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "{D1D1D1}Player Stats", ShowStats(giveid), "Ok", "");
		}
		else { SendClientMessage(playerid, red, "ERROR: Player not connected!"); }
	}
	else { ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "{D1D1D1}Player Stats", ShowStats(playerid), "Ok", ""); }
	return 1;
}
If the problem is still not solved with the command I gave you, then it's probably a too big string which shows the stats.
Reply


Messages In This Thread
Unknown Command /stats - by Zaster - 06.01.2016, 10:05
Re: Unknown Command /stats - by Lucky13 - 06.01.2016, 10:09
Re: Unknown Command /stats - by Zaster - 06.01.2016, 10:14
Re: Unknown Command /stats - by Lucky13 - 06.01.2016, 10:21
Re: Unknown Command /stats - by Zaster - 06.01.2016, 10:28
Re: Unknown Command /stats - by Lucky13 - 06.01.2016, 10:30
Re: Unknown Command /stats - by Zaster - 06.01.2016, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)