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

Lua constant to string?

Inrego

New Member
Joined
Feb 7, 2010
Messages
2,765
Reaction score
71
Hey - in lua I've defined
Code:
MailRecipent = "Dummy"
and I'd like to read the value of MailRecipent - so that in this example it should be a string "Dummy".
I'm guessing I should use Lua.GetReturnValues - but that doesn't give me a string.

Any help is appreciated.
 
PHP:
var Blah = Lua.GetReturnVal<string>("return MailRecipent", 0);
 
You also need to specify where exactly that MailRecipient is located, unless you made it global.
 
Back
Top