What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Lua.GetReturnVal<Boolean> broken?

mastahg

Administrator
Staff member
Joined
Feb 27, 2011
Messages
5,385
Reaction score
389
Code:
Boolean r = Lua.GetReturnVal<Boolean>("return true", 0);
Log(r.ToString());

Yields false, as well as anything else I throw into it.

Edit:
Code:
Boolean r = Lua.GetReturnVal<Boolean>("return 1", 0);
Log(r.ToString());

returns true...


Edit2:

Strange, vbulletin is formating out the <-Boolean-> from the code block... guess it thinks its an html tag.

EDIT 3:
......When the variable I am using is 0 it returns true....br0ked!
 
Last edited:
Back
Top