Hey,
I've been coding recently and been trying lots of code currently, not sure if the issue is from my part or the function itself.
An important method used is sqrt() which is, the square root... It is as important as cos() and sin() for me.
Quote:
Script help for 'sqrt':
Clientside:
Math.sqrt(float) - returns float
Math.sqrt1_2 - float (read only)
Math.sqrt2 - float (read only)
|
PHP Code:
player.chat = sqrt(81); // returns Function not found (0)
PHP Code:
temp.m = new Math();
player.chat = temp.m.sqrt(81); // function not found as well.
(under clientside)
And on serverside:
PHP Code:
function onCreated() echo(sqrt(81));
--
Script: Function sqrt not found at line 3 in script of X
0
I'm trying not to hard-code the function as it reduces the performance of the code, any ideas why it's not working?
I came across lots of problems and will post them here shortly.
Thanks in advance.
(posted on Graalians as well)