I'm trying to get a number from a table, but it's saying it's nil when it really isn't. What'd I do wrong?
Table:
Commands = {
SystemMessage = {P.."sm", rmodule.SystemMessage, 123},
Hint = {P.."hint", rmodule.Hint, 102},
Notify = {P.."notify", rmodule.Notify, 102},
}
Code to check:
for _,v in pairs(Commands) do
if Player:GetRankInGroup() >= tonumber(v[3]) then
RecordCommand(Player, Chat)
v[2](Player, Chat)
end
end

2 comments
Is it saying that a number value was expected to the function GetRankInGroup()? Because you need GroupId there. Do you think you can post the full error, and identify the line it is on?
I expected it to be the table.. Forgot about the GroupID completely, thanks!