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:
[code][ERROR] gamemodes/sniperxtreme/gamemode/database/database.lua:58: function arguments expected near 'if'
1. unknown - gamemodes/sniperxtreme/gamemode/database/database.lua:0[/code]
This is the function the error is in:
[code]function ply:databaseCheck()
self.database = {}
local f = self:databaseExist
if f then
self:databaseRead()
else
self:databaseCreate()
end
self:databaseSend()
self:databaseNetwokedData()
end[/code]
if that's a function you're missing () after, which is used to call it.
Ok. Thank you.
Sorry, you need to Log In to post a reply to this thread.