Начинающий
-
Автор темы
- #1
дайте кто нибудь новый метод спавна подсада у кого есть пожалуйста имхо старый не пашет
struct CScriptSystem
{
virtual void Function0();
virtual void Function1();
virtual void Function2();
virtual void Function3();
virtual void Function4();
virtual void Function5();
// ExecuteBuffer:
// vtable index 6
virtual bool ExecuteBuffer(const char* sBuffer, size_t nSize, const char* sBufferDescription = "", interface IScriptTable* pEnv = 0) = 0;
bool ExecuteLua(std::string cmd) { return ExecuteBuffer(cmd.c_str(), cmd.size()); }
};
юзал этот
struct CScriptSystem
{
virtual void Function0();
virtual void Function1();
virtual void Function2();
virtual void Function3();
virtual void Function4();
virtual void Function5();
// ExecuteBuffer:
// vtable index 6
virtual bool ExecuteBuffer(const char* sBuffer, size_t nSize, const char* sBufferDescription = "", interface IScriptTable* pEnv = 0) = 0;
bool ExecuteLua(std::string cmd) { return ExecuteBuffer(cmd.c_str(), cmd.size()); }
};
юзал этот