ObscureAngel
-
Posts
5 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by ObscureAngel
-
-
On Thursday, January 07, 2016 at 7:02 AM, Pisti95 said:
Search for in Hex Editor, in your launcher/starter.
Search for:
PyRun_SimpleString
And what I should do after with this? I don't use a protected python library.
-
On Saturday, February 08, 2014 at 5:52 PM, Aveline™ said:
int pc_get_lang(lua_State* L) { char szQuery[QUERY_MAX_LEN]; LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); snprintf(szQuery,sizeof(szQuery),"select lang from player%s where id = '%u'",get_table_postfix(),ch->GetPlayerID()); SQLMsg * pMsg = DBManager::instance().DirectQuery(szQuery); MYSQL_ROW row; for(int i = 0; (row = mysql_fetch_row(pMsg->Get()->pSQLResult)) != NULL; ++i) { lua_pushstring(L,row[0]); } return 1; }
Hi,
pMsg is an allocated memory so it must be deleted.
-
4 hours ago, Pisti95 said:
Because in your starter declare this: PyRun_SimpleString
What you mean? I don't understand.
-
Hello metin2dev,
bascially, I am writting a Python Loader thats work with Python 2.7.3 but I have a problem:
when I call the function PyRun_SimpleFile it crashes.It crashes only with this function, if I call PyRun_SimpleString it works.
Someone knows why?
[PYTHON 2.7.3]Python Loader
in Community Support - Questions & Answers
Posted
I'm working with Python 2.7.3. Anyway problem solved: now it works with python's functions (PyFile_FromString, PyFile_AsFile, ecc..).
But now I have another problem: the encoding. Simplest scripts work but with more complex it give me error with the encoding.