4Muki4
HOROHOROHORO
- Joined
- May 1, 2012
- Messages
- 757
- Reaction score
- 72
i get this bug, i dont revive my points but it broadcast it
and here script
rep+
Code:
[25/5/2013 6:21:46] mysql_real_query(): UPDATE accounts SET premium_points=premium_points+20 WHERE id=2 - MYSQL ERROR: Unknown column 'premium_points' in 'field list' (1054)
[25/5/2013 6:21:46] > Broadcasted message: "Congratulations! Tes Pally Advenced To LeveL 250 And Got 20 Premium Points.".
LUA:
local t, storage = {
{300, 10}
}, 256
function onAdvance(cid, skill, oldLevel, newLevel)
if skill ~= SKILL__LEVEL then
return true
end
for i = 1, #t do
local v = t[i]
if newLevel >= v[1] and getCreatureStorage(cid, storage) < i then
db.executeQuery('UPDATE accounts SET premium_points=premium_points+'.. v[2] ..' WHERE id=' .. getPlayerAccountId(cid))
doCreatureSetStorage(cid, storage, i)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Congratulations! You have advanced to level ' .. v[1] .. ' and you have recived '.. v[2] ..' Premium Points!')
doBroadcastMessage('Congratulations! ' .. getCreatureName(cid) .. ' Advenced To LeveL ' .. v[1] .. ' And Got ' .. v[2] .. ' Premium Points.')
end
end
return true
end
Last edited: