Cripplez 40 Posted October 4, 2019 Share Posted October 4, 2019 Hi, in my syser of CH i have a lot of this, i don't think this can cause crash but i wanted to ask you if it still can create problems. If it doesn't I was thinking to delete this syserr from the source so i don't see it anymore, even if I know it sill remains there SYSERR: Oct 4 02:48:02 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:48:07 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:48:27 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:48:42 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:48:57 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:49:07 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:49:12 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:49:37 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:49:47 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 I tried to search where the problem is, but it is impossible to find for me... it could be anywhere Here (questlua_global.cpp 52) there is only this: ALUA(_number) { if (!lua_isnumber(L, 1) || !lua_isnumber(L, 2)) lua_pushnumber(L, 0); else lua_pushnumber(L, number((int)lua_tonumber(L, 1), (int)lua_tonumber(L, 2))); //this is line 52 return 1; } Link to comment Share on other sites More sharing options...
hware82 0 Posted October 4, 2019 Share Posted October 4, 2019 may this helps you? int _number(lua_State* L) { if (!lua_isnumber(L, 1) || !lua_isnumber(L, 2)) lua_pushnumber(L, 0); else lua_pushnumber(L, number((int)lua_tonumber(L, 1), (int)lua_tonumber(L, 2))); return 1; } Link to comment Share on other sites More sharing options...
Cripplez 40 Posted October 4, 2019 Author Share Posted October 4, 2019 2 hours ago, hware82 said: may this helps you? int _number(lua_State* L) { if (!lua_isnumber(L, 1) || !lua_isnumber(L, 2)) lua_pushnumber(L, 0); else lua_pushnumber(L, number((int)lua_tonumber(L, 1), (int)lua_tonumber(L, 2))); return 1; } Thanks, I could try to replace with this int _number(lua_State* L) I'm just a little afraid that this could cause some other problems, or not? ahah i don't know Anyway I'll try and see what happens Link to comment Share on other sites More sharing options...
hware82 0 Posted October 4, 2019 Share Posted October 4, 2019 just do a copy of questlua_global.cpp before any changes,if something wrong replace it back Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted October 4, 2019 Premium Share Posted October 4, 2019 This error is from mob_proto min > max! Link to comment Share on other sites More sharing options...
Premium flatik 190 Posted October 4, 2019 Premium Share Posted October 4, 2019 Search for the number function in the quest. Once you find it, you know where the error will come from... c++latest, latest libs... 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