Jump to content

Stack overflow


Swimer

Recommended Posts

I don't know why, but the code below gives an error "Stack overflow" (line 4)

function updateValue(player, key, value)
    if not (player == nil) then
        local p
        if type ( player ) == "string" and #player == 32 then
            p = player
        else
            p = getPlayerSerial(player)
        end
        if players[p] == nil then
            players[p] = {}
        end
        players[p][key] = value
    end
end

 

Link to comment
  • IIYAMA locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...