Hmm... on second thought, now that I tried it out, it doesnt seem to work.
I took this:
Code:
new tempPitch[32];
get_user_info(id, "m_pitch", tempPitch, 31);
new Float:mousePitch = floatstr(tempPitch);
and made sure all the parameters are what they are supposed to be, like id in get_user_info should be index and so on..
when it didnt work (it compiled ok but I didnt get any value what so ever from m_pitch) I tried tweaking and changing and all sorts of stuff just to make sure that I didnt screw up somewhere else.
If I take this code:
Code:
new tempPitch[32];
get_user_info(id, "m_pitch", tempPitch, 31);
I should be able to print it out with client_print... right?
I tried typing out other stringvariables with it and it worked ok, but not when I try to type tempPitch.
Take this snippet for example
Code:
new test[32];
new test2[32];
copy(test2, 6, "Hello");
get_user_info(id, "m_pitch", test, 31);
client_print( target , print_notify , "Test is:%s ", test);
client_print( target , print_notify , "Test2 is:%s ", test2);
It prints out:
Test is: Test2 is:Hello
So the variable test is actually never getting anything. I figured I made something wrong with index or so... so I made damn sure I had playerindex there by using get_user_index(arg) where arg was the playername.
Anyone have any suggestions on this?