HI.AGAIN
I have a strange problem with the code
The random color is applied once unless the server is restarted once
What is wrong with it?
PHP Code:
else if(equal(szKey, "BARRIER_COLOR"))
{
parse(szValue, szTemp[0], charsmax(szTemp[]), szTemp[1], charsmax(szTemp[]), szTemp[2], charsmax(szTemp[]))
for(i = 0; i < 3; i++)
{
g_eSettings[BARRIER_COLOR][i] = _:floatclamp(str_to_float(szTemp[i]), -1.0, 255.0)
if (g_eSettings[BARRIER_COLOR][i] == -1.0)
{
g_eSettings[BARRIER_COLOR][i] = g_fColor[random(MAX_COLORS)][i];
}
}
}
__________________