Textdraw logic help
#2

This should work, untested though.
Код:
#include <a_samp>

new tdStrings[ 7 ][ 64 ];

public OnFilterScriptInit()
{
	for(new i = 0; i < 7; i++)
	{
		format(tdStrings[i], 64, "-");
                TextDrawSetString(Logs[i], tdStrings[i]);
	}
	return 1;
}

addLogLine(text[])
{
	for(new i = 0; i < 6; i++)
	{
		format(tdStrings[i], 64, "%s", tdStrings[i+1]);
		TextDrawSetString(Logs[i], tdStrings[i]);
	}

	format(tdStrings[6], 64, "%s", text);
	TextDrawSetString(Logs[6], tdStrings[6]);

	return 1;
}
Reply


Messages In This Thread
Textdraw logic help - by lukewid - 14.06.2015, 10:50
Re: Textdraw logic help - by [XST]O_x - 14.06.2015, 11:23
Re: Textdraw logic help - by lukewid - 14.06.2015, 11:36
Re: Textdraw logic help - by [XST]O_x - 14.06.2015, 11:38
Re: Textdraw logic help - by lukewid - 14.06.2015, 11:45
Re: Textdraw logic help - by bgedition - 14.06.2015, 11:50

Forum Jump:


Users browsing this thread: 3 Guest(s)