Raised This Month: $ Target: $400
 0% 

I cant get float / 1000.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-02-2006 , 11:04   I cant get float / 1000.0
Reply With Quote #1

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
__________________
Sig(h)!
Obbin is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-02-2006 , 11:22  
Reply With Quote #2

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

You need to call the function correctly.
Brad is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-02-2006 , 11:56  
Reply With Quote #3

aah now i see, thx!
__________________
Sig(h)!
Obbin is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-02-2006 , 13:55  
Reply With Quote #4

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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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 -4. The time now is 16:03.


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