Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 32082

[TFS 1.x] addEvent executing twice?

$
0
0
Hi everyone, I have this code to check every SQM that have action ID 2130 every 60 seconds to see if player storage is still valid, it works very well, but once it teleport me, the line 7 is executed twice, why?


Lua:
local event = {}
local function checkSQM(cid)
    local player = Player(cid)
    if player:getStorageValue(1234) < os.time() then
        event[cid] = nil
        player:teleportTo(Position(326, 300, 7))
        player:popupFYI("<msg>")...
[TFS 1.x] addEvent executing twice?

Viewing all articles
Browse latest Browse all 32082

Trending Articles