Gsp
RP
- Joined
- Jan 3, 2008
- Messages
- 250
- Solutions
- 1
- Reaction score
- 4
Hi guys, does anyone have a properly working bank system for 0.4 3884? I havent been able to find it here.
I made a talkaction script which reads your balance from database (instead of GPs you are carrying) and it is working fine.
i'm trying to make it so it removes the money and adds it on top of db value but this is beyond my knowledge
this part is all I need. Id appreciate your help thank you!
========
Solved thanks
I made a talkaction script which reads your balance from database (instead of GPs you are carrying) and it is working fine.
Lua:
function onSay(cid, words, param)
local balance = db.getResult("SELECT `balance` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. ";")
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have " .. balance:getDataInt("balance") .. " gps in yout balance.")
return true
end
i'm trying to make it so it removes the money and adds it on top of db value but this is beyond my knowledge
this part is all I need. Id appreciate your help thank you!
========
Solved thanks
Last edited: