14.06.2015, 11:36
Quote:
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; } |