Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-22-2014, 02:08 PM
Johnaudi Johnaudi is offline
Weirdo
Join Date: May 2014
Location: Lebanon
Posts: 4
Johnaudi will become famous soon enough
Gs2 Missing or Depricated functions?

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.= 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

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)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.