local check = dbPoll(dbQuery(connection, "SELECT * FROM account WHERE drift = ?",tostring(account)), -1 );
if type(check) ~= "table" and #check ~= 0 or not check then
local d = check[1];
local t = fromJSON ( d["data"] );
if ( type ( t ) == "table" ) then
for k, v in pairs ( t ) do
setElementData ( source, k, v );
end
end
end
end
end
addEventHandler ( "onPlayerLogin", root, loadDriftPoints )
You either have less "end" or more "end".
Check.