Elzza 0 Posted August 31, 2014 Share Posted August 31, 2014 I wrote a code which should send the number to lua (quest), but something is wrong. This code isn't sending number to lua, why? Plik questlua_pc.cpp: ... int pc_my_func(lua_State* L) { ... lua_pushnumber(L, 0); return 0; ... } ... and quest test.quest: quest test begin state start begin when blacksmith.chat."test" begin say("test") local var = pc.my_func() say(var) end end end Link to comment Share on other sites More sharing options...
Premium Lufbert 20 Posted September 1, 2014 Premium Share Posted September 1, 2014 In C++ function change return 0; To: return.1; 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now