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_name( id, Name, charsmax(Name) )
static float:Origin[3]
get_user_origin(id, Origin)
static Output[128]
formatex( Output, charsmax(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?