• Argument expected
    4 replies, posted
I got a error while trying to make a part of my admin mod working: [code] gamemodes/mds/gamemode/base/mdsadmin.lua:76: function arguments expected near 'then'[/code] The code I'm using is: [lua] if client:IsAdmin then local admin = "Admin" elseif client:IsSuperAdmin then local admin = "Super Admin" elseif client:IsUserGroup("owner") then local admin = "Owner" end [/lua] Anyone got any idea?
if client:IsAdmin should be if client:IsAdmin() same with client:IsSuperAdmin should be IsSuperAdmin()
Oh, my bad, thanks.
No problem :).
you're making "admin" local in your if statements which means you won't be able to access it
Sorry, you need to Log In to post a reply to this thread.