AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Native not bound. (https://forums.alliedmods.net/showthread.php?t=326117)

humptee 07-18-2020 22:13

Native not bound.
 
Hello, I am trying to use SquareRoot() from the float include in my project and am getting the error "Native not bound" for SquareRoot(x) and Pow(x, y)

However when I use any other function from that include it works?

examples:
Code:

public void OnPluginStart()
{
    // This returns 100 as expected.
    PrintToServer("RoundToFloor: %d", RoundToFloor(100.99));
   
    // this returns Exception thrown: Native is not bound
    // [0] SquareRoot()
    PrintToServer("SQRT: %d", SquareRoot(100.00));
}

Any help would be appreciated.

Silvers 07-18-2020 22:53

Re: Native not bound.
 
Wrong section and why are you cross posting?

https://forums.alliedmods.net/showthread.php?t=326118

https://forums.alliedmods.net/misc.php?do=showrules

Quote:

Do not cross-post threads to multiple forums (or posts to multiple threads).


All times are GMT -4. The time now is 12:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.