BlancO
24th September 2013, 15:05
There is a problem with:
std/math.gsc
intsqrt(input)
{
output = 0;
while(output * output < input)
output++;
if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
output--;
return output;
}
console_log.mp
Error:
******* script compile error *******
Error: unknown function: (file 'std/math.gsc', line 69)
if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
*
************************************
dvar set cl_paused 0
dvar set com_errorMessage script compile error
unknown function
if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
(see console for details)
********************
ERROR: script compile error
unknown function
if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
(see console for details)
********************
If this is proper abs function:
abs (num)
{
if (num < 0)
num*= -1;
return num;
}
I always get ping = 0 and IP = 0.
std/math.gsc
intsqrt(input)
{
output = 0;
while(output * output < input)
output++;
if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
output--;
return output;
}
console_log.mp
Error:
******* script compile error *******
Error: unknown function: (file 'std/math.gsc', line 69)
if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
*
************************************
dvar set cl_paused 0
dvar set com_errorMessage script compile error
unknown function
if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
(see console for details)
********************
ERROR: script compile error
unknown function
if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
(see console for details)
********************
If this is proper abs function:
abs (num)
{
if (num < 0)
num*= -1;
return num;
}
I always get ping = 0 and IP = 0.