• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Cannot buy premium days in my server

Szka

Member
Joined
Jul 27, 2016
Messages
65
Reaction score
11
Location
Chile
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)
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"/>
to
Code:
        <attribute key="worth" value="10000"/>
 
Last edited:
Back
Top