Oh.. Dur.. Change:
Code:
format(text, 30, " %f, %f, %f", angle[0], angle[1], angle[2]);
To:
Code:
format(text, 29, " %i, %i, %i", angle[0], angle[1], angle[2]);
'get_user_origin()' doesn't return a float.
Also, that is going to be writing to a file.. A lot.. That would reach 100 lines in a few seconds.
You could make a task instead, to make it write every few seconds or so.
__________________