Qbox-project / qbx_core

http://qbox-project.github.io
Other
60 stars 133 forks source link

syntax error found #581

Closed VerserVarlin closed 1 hour ago

VerserVarlin commented 2 hours ago

Summary

was getting a syntax error in qbx_core\modules\lib.lua. fix included

Reproduction

skip

Expected behavior

how you have the code block line 121-127

function qbx.table.size(tbl)
    local size = 0
    for _ in pairs(tbl) do
        size += 1
    end
    return size
end

here is a fix for it

function qbx.table.size(tbl)
    local size = 0
    for _ in pairs(tbl) do
        size = size + 1
    end
    return size
end

Actual behavior

skip

Additional context

No response

Current Version

1.19.0

Custom Resources

no

Manason commented 2 hours ago

Summary

was getting a syntax error in qbx_core\modules\lib.lua. fix included

Reproduction

skip

Expected behavior

how you have the code block line 121-127

function qbx.table.size(tbl)
    local size = 0
    for _ in pairs(tbl) do
        size += 1
    end
    return size
end

here is a fix for it

function qbx.table.size(tbl)
    local size = 0
    for _ in pairs(tbl) do
        size = size + 1
    end
    return size
end

Actual behavior

skip

Additional context

No response

Current Version

1.19.0

Custom Resources

no

What syntax error were you getting? What game version are you running? Have you modified qbx_core at all?

mafewtm commented 2 hours ago

That's what this is for

VerserVarlin commented 1 hour ago

That's what this is for

if so then i should not be getting a syntax error from it, right?

Manason commented 1 hour ago

That's what this is for

if so then i should not be getting a syntax error from it, right?

Did you figure out the reason for the syntax error?