Raised This Month: $ Target: $400
 0% 

get_distance_f cant compile


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
elantra86
Member
Join Date: Feb 2014
Old 03-15-2014 , 15:04   get_distance_f cant compile
Reply With Quote #1

Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
 
#define PLUGIN "[http://amxxmodx.ru] get_distance_f"
#define VERSION "1.0"
#define AUTHOR "Admin"
 
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say dis","dis")
}

public dis(id){
new Float:forigin[3]
new Float:sorigin[3]
get_user_origin(id, forigin)
get_user_origin(id, sorigin, 3)  
new Float:distance = get_distance_f(forigin,sorigin)
client_print(0,print_chat,"Dist:%f",distance)
// client_print(0, print_chat, "Your current origin is %ix, %iy, %iz", sorigin[0], sorigin[1], sorigin[2])
}
if i print one of sorigin or forigin it works.
but cant get distance.
where i do mistake plz help.
thx in advance

Last edited by elantra86; 03-15-2014 at 15:04.
elantra86 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 05:59.


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