Zcmd command, no errors but dont work
#1

Welcome, i have a command, pawn dont found any error any warning, i don't know
where's the error, when i use this command it crashes my server.

Here's the code:

Код:
CMD:stats(playerid, params[])
{
	if(!IsPlayerConnected(playerid)) return 0;
	new statstext[128], n[24];
	GetPlayerName(playerid, n, 24);
	format(statstext, 128, "AdminSzint: [%d] | Szint: [%d] | Exp: [%d] | Pйnz: [%d]", pInfo[playerid][Admin], pInfo[playerid][Level], pInfo[playerid][Exp], GetPlayerMoney(playerid));
	SendClientMessage(playerid, COLOR_YELLOW, "==========%s==========");
	SendClientMessage(playerid, COLOR_YELLOW, statstext);
	return 1;
}
What is the problem?
Reply
#2

pawn Код:
SendClientMessage(playerid, COLOR_YELLOW, "==========%s==========");
Pretty sure it is that line. Use formats to format your string.
Reply
#3

Realy, im silly
Now works fine.
Thank you for help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)