mayel
New Member
Does anyone know how I, simply as possible can edit columns in tables in my mysql database with scripts in the game.
Like u press a lever and a column in the "players" table called vipdays changes to 30.
And if you know how to make it to change to +30,(add 30 days to current value)
I'm supposed to use this right? ---db.executeQuery(query)---
it's even better.
Btw how do i make random numbers in lua?
Thanks in advance...
I'm sure theres a lot of errors in this code but please tell me what's wrong:
function onUse(cid, item, frompos, itemEx, topos)
db.executeQuery(UPDATE players SET level = 8; WHERE name = "Test"; )
return true
end
Like u press a lever and a column in the "players" table called vipdays changes to 30.
And if you know how to make it to change to +30,(add 30 days to current value)
I'm supposed to use this right? ---db.executeQuery(query)---
it's even better.
Btw how do i make random numbers in lua?
Thanks in advance...
I'm sure theres a lot of errors in this code but please tell me what's wrong:
function onUse(cid, item, frompos, itemEx, topos)
db.executeQuery(UPDATE players SET level = 8; WHERE name = "Test"; )
return true
end
Last edited: