Raised This Month: $ Target: $400
 0% 

[SOLVED]Printing values from get_user_origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 11-02-2011 , 14:45   [SOLVED]Printing values from get_user_origin
Reply With Quote #1

Okay so I've been trying to make this work for about an hour now.
But I've been searching the forum and the funcwiki and can't figure out what's wrong here

What I'm trying to do is get users origin and log each value, here's my code.

PHP Code:
public cmdOrigin(id)
{
    static 
Name[34]
    
get_user_nameidNamecharsmax(Name) )
    
    static 
float:Origin[3]
    
get_user_origin(idOrigin)
    
    static 
Output[128]
    
formatexOutputcharsmax(Output), "Origin[0](x) = %f, Origin[1](y) = %f, Origin[2](z) = %f, commander: %s"Origin[0], Origin[1], Origin[2], Name )
    
    
log_amx(Output)

Can anyone explain why it isn't working?

Last edited by Erox902; 11-02-2011 at 15:17.
Erox902 is offline
 


Thread Tools
Display Modes

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 14:15.


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