y pues muestranos porque no funciona, errores o algo, no esperes que hagamos el trabajo por ti, te ayudamos pero no lo hacmos. Vives pidiendo cosas, pon empeño en aprender tu tmb
function Login(_, c)
local playerMoney = getAccountData(c, "Cash")
local playerEXP = getAccountData(c, "Exp")
if playerMoney and playerEXP then
setElementData(source, "Cash", playerMoney or 0)
setElementData(source, "Exp", playerEXP or 0)
end
end
addEventHandler("onPlayerLogin", getRootElement(), Login)
Hello, I don't know wher should I put this, so I leave it here. If it's wrong, mods, move it, please.
I would like to create a custom map. Does somebody know step by step (excluding map-making and that, ofc..) how can I do a custom map.
Example
Use this program: blahblahblah
Then you gotta save it as blahblah
Then you do this, that, that and you can use your map in MTA.
Thank you in advance. Hope you understood.
porque pusiste DISTINTO de MATT , tenes que poner IGUAAAAAAAL.
Despues vehicle no está declarado, borra la linea del if source, y su respectivo end. borra tambien el if seat distinto de 0 pues no lo usas.
For that you can use dbQuery and then use dbPoll on that dbQuery.
local ex = dbQuery(...)
local poll = dbPoll(ex, -1)
Poll will be the table holding all the tables from the query
so if you wanna get that using:
SELECT skin FROM yourtable WHERE acc_owner = 'solstice'
It will be stored in poll[1].skin if I'm not wrong.