Arguments not working?

I have been using GMod for some time, but I never got into the coding aspect until recently. While coding a gamemode making the database.lua file I keep running into errors. Most of them I have been able to solve, except this one:


[ERROR] gamemodes/sniperxtreme/gamemode/database/database.lua:58: function arguments expected near 'if'
  1. unknown - gamemodes/sniperxtreme/gamemode/database/database.lua:0

This is the function the error is in:


function ply:databaseCheck()
    self.database = {}
    local f = self:databaseExist
    if f then
        self:databaseRead()
    else
        self:databaseCreate()
    end
    self:databaseSend()
    self:databaseNetwokedData()
end

if that’s a function you’re missing () after, which is used to call it.

Ok. Thank you.