You need to do a talkactions what will get it from db smth like that
I wont do it for u cuz u will never learn anything.SQL:'SELECT `premium_points` FROM `account`s WHERE `id` = ' ..AccID
function onSay(cid, words, param)
res = db.getResult('select premium_points from accounts where id = '..getPlayerAccountId(cid))
if res:getID() ~= -1 then
doPlayerPopupFYI(cid, 'You have '..res:getDataInt('premium_points') ..' premium points.')
else
doPlayerPopupFYI(cid, 'Database error, contact server administrator.')
end
return TRUE
end
Code:function onSay(cid, words, param) res = db.getResult('select premium_points from accounts where id = '..getPlayerAccountId(cid)) if res:getID() ~= -1 then doPlayerPopupFYI(cid, 'You have '..res:getDataInt('premium_points') ..' premium points.') else doPlayerPopupFYI(cid, 'Database error, contact server administrator.') end return TRUE end