• Trying to delete a string index from a table
    4 replies, posted
Hello, I have a table who's structure looks like this: STEAM_0:0:95606375:                 firstjoined     =       1                 id      =       STEAM_0:0:95606375 I want to delete it from the table but I am unable to figure out how. I can't directly delete by the string with table.remove due to that requiring an index number and I can't find the index number as table.RemoveByValue does nothing even when given the id. How would I accomplish this? Different things I have tried: PrintTable(Players) print(table.KeyFromValue(Players,'STEAM_0:0:95606375')) print(table.RemoveByValue( Players, playerData.id )) print(table.remove(Players,playerData.id)) PrintTable(Players)
table.RemoveByValue
As seen in the code RemoveByValue didn't do or return anything
The SteamID is a key not a value so you could just do: Table["SteamID"] = nil
Ty!
Sorry, you need to Log In to post a reply to this thread.