We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When i call lua function with use_self=True, i got this error: call to lua function attempt to call a table value failed
php code example: $lua = new Lua(); $lua->include('battleEntryServer/BattleEntry.lua'); $lua->call(array('G_BattleChecker', 'RunOneBattle'), [], true))
lua code example: battleEntryServer/BattleEntry.lua: G_BattleChecker = require('battleEntryServer.BattleChecker').new()
battleEntryServer/BattleChecker.lua: local BattleChecker = class('BattleChecker') function BattleChecker:RunOneBattle(){
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When i call lua function with use_self=True, i got this error: call to lua function attempt to call a table value failed
php code example:
$lua = new Lua();
$lua->include('battleEntryServer/BattleEntry.lua');
$lua->call(array('G_BattleChecker', 'RunOneBattle'), [], true))
lua code example:
battleEntryServer/BattleEntry.lua:
G_BattleChecker = require('battleEntryServer.BattleChecker').new()
battleEntryServer/BattleChecker.lua:
local BattleChecker = class('BattleChecker')
function BattleChecker:RunOneBattle(){
}
The text was updated successfully, but these errors were encountered: