Argument Errors


autorun/zStats.lua:34: function arguments expected near 'unique_id'

That is the error I am receiving, and I am completely stumped, and here is line 34.


	unique_id = sql.QueryValue("SELECT unique_id FROM player_info WHERE unique_id = '"..steamID.."'")

Thanks in advance.

We’ll need to see what’s above the line you gave us.



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


I’ll just post the whole function.

[editline]11:40PM[/editline]

bump for answers


steamID = ply:SteamID

This line is missing it’s argument brackets, like this:


steamID = ply:SteamID( )

Thank you, feel free to rate me dumb. :hurr:

There’s no problem, everyone makes mistakes when they first begin coding. :smile: