AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I cant get float / 1000.0 (https://forums.alliedmods.net/showthread.php?t=22710)

Obbin 01-02-2006 11:04

I cant get float / 1000.0
 
i cant get this working!
Code:
    new Float:fTime     read_data(2, fTime)         floatdiv( fTime / 1000.0 )

tried this to:
Code:
    new Float:fTime     read_data(2, fTime)         fTime = floatdiv( fTime / 1000.0 )

The thing is it should divide fTime width 1000 and "dump" the quotient in fTime itself

Brad 01-02-2006 11:22

http://www.amxmodx.org/funcwiki.php?...tdiv&go=search

You need to call the function correctly.

Obbin 01-02-2006 11:56

aah now i see, thx!

XxAvalanchexX 01-02-2006 13:55

There is no reason to use the actual function. The includes automatically interpret "float1 / float2" as "floatdiv(float1,float2)". It makes your code much easier to read.


All times are GMT -4. The time now is 16:03.

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