GanJaRuleZ Posted March 25, 2012 Posted March 25, 2012 -.- Dear Jector , getCameraMatrix returns floats. outputChatBox requires strings . Got it ? Here : function matrix( ) if exports.global:isPlayerHeadAdmin( thePlayer ) then local a, b, c, d, e, f = getCameraMatrix( ) outputChatBox(tostring(a) ..", "..tostring(b)..", "..tostring(c)..", "..tostring(d)..", "..tostring(e)..", "..tostring(f), 255, 194, 14) end end addCommandHandler("matrix", matrix)
Kenix Posted March 25, 2012 Posted March 25, 2012 anJaRuleZ,Your code wrong. I already posted corrected code
drk Posted March 25, 2012 Posted March 25, 2012 @@GanJaRuleZ As far as I know, outputChatBox converts to string automatically.
GanJaRuleZ Posted March 25, 2012 Posted March 25, 2012 Hmm ? I'm not sure , but anyway , ty for informing me
Aibo Posted March 25, 2012 Posted March 25, 2012 outputChatBox() accepts numbers and strings, but here the number->string conversion is done by concatenation operator ".." anyway, this is not the issue, stop arguing.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now