Raised This Month: $ Target: $400
 0% 

get_distance returning huge ints


Post New Thread Reply   
 
Thread Tools Display Modes
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
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-29-2005 , 19:29  
Reply With Quote #2

Are your arrays floats or integers? How do you get the values?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 01-30-2005 , 02:43  
Reply With Quote #3

arrays are ints i believe functions such as

new origin[3]
get_user_origin(id, origin)

^^ this is the jist but not actual code
__________________
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
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 19:24.


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