I have this to check for any user id’s:
local query = “SELECT * FROM
STEAMID = '” … ply:SteamID() … “’”;
local tab, succ, err = mysql.query( TS.SQL, query ); if( tab and #tab > 0 ) then ply:SetField( "uid", tab );
However, it doesen’t work. It stops at the tab checking part. I’ve tried if( tab ) then which seems to go on, but then it doesen’t work properly later on.
I’m sure all of the mySQL tables/rows are setup correctly, but I have no idea why it’s doing it as I’m not really experienced with MySQL.