haha, if i use a negative number, that's when it freaks out
also, syntax, i just did that, although i don't think it should matter
edit: update
function timescales(%timescale1, %time1, %timescale2, %time2, %toggle)
{
if(%timescale1 < 0 || %time1 < 0 || %timescale2 < 0 || %time2 < 0)
{
cancel($timescaleshced);
}
if(%toggle = 0)
{
%toggle = 1;
commandtoserver('timescale', %timescale1);
%time = %time1 * 1000;
$timescalesched = schedule(%time, 0, timescales, %timescale1, %time1, %timescale2, %time2, %toggle);
}
else
{
if(%toggle = 1)
{
%toggle = 0;
commandtoserver('timescale', %timescale2);
%time = %time2 * 1000;
$timescalesched = schedule(%time, 0, timescales, %timescale1, %time1, %timescale2, %time2, %toggle);
}
else
}
%toggle = 0;
}
}
}