CMD /INVITE CRASHES SERVER, SERVER_LOG,PLEASE HELP ME.
#3

there is it


Код:
stock SendMes(playerid, color, fstring[], {Float, _}:...)
{
	static const
	STATIC_ARGS = 3;
	new
	n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
	if (n)
	{
		new
		message[128],
		arg_start,
		arg_end;
		#emit CONST.alt        fstring
		#emit LCTRL          5
		#emit ADD
		#emit STOR.S.pri        arg_start

		#emit LOAD.S.alt        n
		#emit ADD
		#emit STOR.S.pri        arg_end
		do
		{
			#emit LOAD.I
			#emit PUSH.pri
			arg_end -= BYTES_PER_CELL;
			#emit LOAD.S.pri      arg_end
		}
		while (arg_end > arg_start);

		// Push the static format parameters.
		#emit PUSH.S          fstring
		#emit PUSH.C          128
		#emit PUSH.ADR         message

		n += BYTES_PER_CELL * 3;
		#emit PUSH.S          n
		#emit SYSREQ.C         format

		n += BYTES_PER_CELL;
		#emit LCTRL          4
		#emit LOAD.S.alt        n
		#emit ADD
		#emit SCTRL          4

		return SendClientMessage(playerid, color, message);
	}
	else
	{
		return SendClientMessage(playerid, color, fstring);
	}
}
Reply


Messages In This Thread
CMD /INVITE CRASHES SERVER, SERVER_LOG,PLEASE HELP ME. - by georgian1 - 12.02.2015, 23:26
Re: CMD /INVITE CRASHES SERVER, SERVER_LOG,PLEASE HELP ME. - by nGen.SoNNy - 12.02.2015, 23:45
Re: CMD /INVITE CRASHES SERVER, SERVER_LOG,PLEASE HELP ME. - by georgian1 - 12.02.2015, 23:51
Re: CMD /INVITE CRASHES SERVER, SERVER_LOG,PLEASE HELP ME. - by georgian1 - 13.02.2015, 00:31

Forum Jump:


Users browsing this thread: 1 Guest(s)