Hello Otland
Im using TFS 1.5 and 8.60 version.
I already hooked up the website with Znote. Been trying to get some premium days with my account like a new player but the script doesnt work completely fine.
I've got the money but it still won't work. I'm guessing it has to do with some setup with the database but im not sure.
Here is one of the scripts i'm using (been trying with a lot of different scripts)
Thank you very much
Had to change the
to
Im using TFS 1.5 and 8.60 version.
I already hooked up the website with Znote. Been trying to get some premium days with my account like a new player but the script doesnt work completely fine.
I've got the money but it still won't work. I'm guessing it has to do with some setup with the database but im not sure.
Here is one of the scripts i'm using (been trying with a lot of different scripts)
Lua:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid,10000) then
doPlayerAddPremiumDays(cid, 10)
doSendMagicEffect(getPlayerPosition(cid),12)
doPlayerSendTextMessage(cid,22,"You have succesfully bought premium for ten days.")
else
doPlayerSendCancel(cid,"You don\'t have enough money.")
doSendMagicEffect(getPlayerPosition(cid),2)
end
return TRUE
end
Thank you very much
Post automatically merged:
Had to change the
Lua:
<attribute key="currency" value="10000"/>
Code:
<attribute key="worth" value="10000"/>
Last edited: