Error: attempt to concatenate a nil value @ line 6
[lua]
local pMeta = FindMetaTable(“Player”)
function pMeta:GetCoins()
local strquery = “SELECT coins FROM players WHERE steamid = '”…self:SteamID()…"’"
print(strquery) – Prints “SELECT coins FROM players WHERE steamid = ‘STEAM_0:0:1859’”
print("query - "…tmysql.query(strquery)) – error occurs here
end
[/lua]
When I run this query in PhpMyAdmin it returns the value I want.
I am using tmysql3.