SA-MP Forums Archive
Zcmd command, no errors but dont work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Zcmd command, no errors but dont work (/showthread.php?tid=265692)



Zcmd command, no errors but dont work - Velatrix© - 02.07.2011

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?


Re: Zcmd command, no errors but dont work - [HiC]TheKiller - 02.07.2011

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


Re: Zcmd command, no errors but dont work - Velatrix© - 02.07.2011

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