Raised This Month: $ Target: $400
 0% 

get_distance returning huge ints


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 01-29-2005 , 19:02   get_distance returning huge ints
Reply With Quote #1

get_distance problem when i compare to locations like so

new distance = get_distance(oldloc, newloc)

then i do:

client_print(0, print_chat, "Distance Debug: %d", distance)

I get huge numbers back for the distance
Im guessing it has to do with floats ... how can i get floats to show up correctly with decimal points and stuff.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
 



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 19:24.


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