Apply line breaks

This commit is contained in:
OciXCrom 2018-09-13 14:59:07 +02:00
parent 8f88dc5ac8
commit 8e823bf92c

View File

@ -38,15 +38,21 @@ public showMsg()
new a = g_startPos, i = 0 new a = g_startPos, i = 0
while (a < g_endPos) while (a < g_endPos)
{
g_displayMsg[i++] = g_scrollMsg[a++] g_displayMsg[i++] = g_scrollMsg[a++]
}
g_displayMsg[i] = 0 g_displayMsg[i] = 0
if (g_endPos < g_Length) if (g_endPos < g_Length)
{
g_endPos++ g_endPos++
}
if (g_xPos > 0.35) if (g_xPos > 0.35)
{
g_xPos -= 0.0063 g_xPos -= 0.0063
}
else else
{ {
g_startPos++ g_startPos++
@ -101,7 +107,9 @@ public setMessage()
set_task(float(g_Frequency), "msgInit", 123, "", 0, "b") set_task(float(g_Frequency), "msgInit", 123, "", 0, "b")
} }
else else
{
server_print("%L", LANG_SERVER, "MSG_DISABLED") server_print("%L", LANG_SERVER, "MSG_DISABLED")
}
return PLUGIN_HANDLED return PLUGIN_HANDLED
} }