Swimer Posted February 18, 2022 Posted February 18, 2022 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
Moderators IIYAMA Posted February 18, 2022 Moderators Posted February 18, 2022 Locked: duplicate Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts