Raised This Month: $ Target: $400
 0% 

get_user_origin keeps returning 0,0,0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jameszhao00
Junior Member
Join Date: Jan 2008
Old 01-04-2008 , 23:59   get_user_origin keeps returning 0,0,0
Reply With Quote #1

Hi,

I'm currently trying to log the player position in the client_PostThink code. However, get_user_origin keeps returning 0,0,0 as the position, even as I move around. Can anyone spot an error?
Code:
new angle[3];
new text[30];
public client_PostThink(id)
{        
    get_user_origin(id, angle, 0);
    format(text, 30, " %f, %f, %f", angle[0], angle[1], angle[2]);
    write_file("viewvec.txt", text);    
    client_print(id, print_chat, text);    
}
Thanks,
James
jameszhao00 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 11:08.


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