Raised This Month: $ Target: $400
 0% 

How many feet in origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 11-09-2007 , 11:50   Re: How many feet in origin
Reply With Quote #1

Might as well include this data as well Alka:
Code:
public Float:Native_get_real_distance() {     new Float:vOrigin1[3], Float:vOrigin2[3]     get_array_f(1, vOrigin1, 3)     get_array_f(2, vOrigin2, 3)         new Float:hlunits = get_distance_f(vOrigin1, vOrigin2)     new Float:units = hlunits * 0.0254 // meter     new convert = get_param(3)     switch (convert)     {         case 0: units *= 39.3701    // inch         case 1: units *= 3.2808 // foot         case 2: units *= 1.0936 // yard         case 3: units *= 0.001  // kilometer         case 4: units *= 0.0006 // mile     }     return units }
Native from SHPUN which has been discontinued.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz 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 01:13.


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