• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Need help !aol

GoDSpiX

New Member
Joined
Feb 15, 2015
Messages
26
Reaction score
0
It wont work!!
Code:
function onSay(cid, words, param, channel)
   if getPlayerStorage(cid, 2700) <= os.time() then
     local kk = os.time()+2
     setPlayerStorageValue(cid, 2700, kk)
       if getPlayerMoney(cid) >= 10000 then
         if doPlayerAddItem(cid, 2173, 1, false) then
           return doPlayerRemoveMoney(cid, 10000) and doSendMagicEffect(getCreaturePosition(cid), 22)
         else
          return doPlayerSendCancel(cid, "You don't have space or cap.") and doSendMagicEffect(getCreaturePosition(cid), 2)
         end
       else
         return doPlayerSendCancel(cid, "You don't have money.") and doSendMagicEffect(getCreaturePosition(cid), 2)
       end
   else
         return doPlayerSendCancel(cid, "You are exhausted.") and doSendMagicEffect(getCreaturePosition(cid), 2)
   end
   return true
end
--------------------------------------


In the Console it say


data/talkactions/scripts/aol.lua:2: attempt to call global 'getPlayerStorageValue' (a nil value)

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/aol.lua:eek:nSay
data/talkactions/scripts/aol.lua:2: attempt to call global 'getPlayerStorage' (a nil value)
stack traceback:
[C]: in function 'getPlayerStorage'
data/talkactions/scripts/aol.lua:2: in function <data/talkactions/scripts/aol.lua:1>


This is for a !aol script.
 
Last edited by a moderator:
Back
Top