• Argument Errors
    5 replies, posted
[code]autorun/zStats.lua:34: function arguments expected near 'unique_id'[/code] That is the error I am receiving, and I am completely stumped, and here is line 34. [code] unique_id = sql.QueryValue("SELECT unique_id FROM player_info WHERE unique_id = '"..steamID.."'")[/code] Thanks in advance.
We'll need to see what's above the line you gave us.
[code] function sql_value_stats ( ply ) steamID = ply:SteamID unique_id = sql.QueryValue("SELECT unique_id FROM player_info WHERE unique_id = '"..steamID.."'") points = sql.QueryValue("SELECT points FROM player_info WHERE unique_id = '"..steamID.."'") ply:SetNWString("unique_id", unique_id) ply:SetNWInt("points", points) end [/code] I'll just post the whole function. [editline]11:40PM[/editline] bump for answers
[code]steamID = ply:SteamID[/code] This line is missing it's argument brackets, like this: [code]steamID = ply:SteamID( )[/code]
[QUOTE=Zcom;19185438][code]steamID = ply:SteamID[/code] This line is missing it's argument brackets, like this: [code]steamID = ply:SteamID( )[/code][/QUOTE] Thank you, feel free to rate me dumb. :hurr:
[QUOTE=z-machine;19185498]Thank you, feel free to rate me dumb. :hurr:[/QUOTE] There's no problem, everyone makes mistakes when they first begin coding. :smile:
Sorry, you need to Log In to post a reply to this thread.