YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

SQrat: Retrieving a function from a script
ynh
#1 Posted : Saturday, April 21, 2012 6:29:28 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/21/2012(UTC)
Posts: 1

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Is this possible? Here is how I compile my script:
Code:
// Loading the script.
m_pScript = new Script(g_VM);
m_pScript->CompileFile(szScriptPath);
m_pScript->Run();


From there, I've tried:
Code:
return Function(*m_pScript, szFunctionName);


But it fails when I check for function.isNull().

Any ideas?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.079 seconds.