Lurk
Active Member
- Joined
- Dec 4, 2017
- Messages
- 336
- Reaction score
- 48
I'm using TFS 0.4 rev 3777 and I'm trying to change the gold limit from init32_t to int64_t, I've been messing with some of my source files and i've already changed the Worth and moneyCount to int64_t and everything was fine when compiling but the gold limit was still in int32... Then I changed on luascript.cpp
from
to
I've changed removeMoney and transferMoney as well in the same way, and then on luascript.h I've changed
from
referent to this line:
Does anyone knows how to solve this?
from
int32_t LuaInterface::luaDoPlayerAddMoney(lua_State* L)
to
int64_t LuaInterface::luaDoPlayerAddMoney(lua_State* L)
I've changed removeMoney and transferMoney as well in the same way, and then on luascript.h I've changed
from
tostatic int32_t luaDoPlayerAddMoney(lua_State* L);
but then I got this error:static int64_t luaDoPlayerAddMoney(lua_State* L);
luascript.cpp invalid conversion from `int64_t (*)(lua_State*)' to `int (*)(lua_State*)'
referent to this line:
lua_register(m_luaState, "doPlayerAddMoney", LuaInterface::luaDoPlayerAddMoney);
Does anyone knows how to solve this?
Last edited: