Update znoteshop.lua (#373)

Now you'll recieve 1 item per time, because there's no global event compatible with TFS 0.2
This commit is contained in:
Rodrigo Paixão 2019-12-03 11:14:51 -03:00 committed by Stefan A. Brannfjell
parent 8e0df92f98
commit 98f90eb442

View File

@ -21,7 +21,6 @@ function onSay(cid, words, param)
-- Detect if we got any results
if orderQuery ~= false then
repeat
-- Fetch order values
local q_id = result.getDataInt(orderQuery, "id")
local q_type = result.getDataInt(orderQuery, "type")
@ -82,7 +81,6 @@ function onSay(cid, words, param)
-- So use type 7+ for custom stuff, like etc packages.
-- if q_type == 7 then
-- end
until not result.next(orderQuery)
result.free(orderQuery)
if not served then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have no orders to process in-game.")
@ -94,4 +92,4 @@ function onSay(cid, words, param)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Can only be executed once every "..cooldown.." seconds. Remaining cooldown: ".. getPlayerStorageValue(cid, storage) - os.time())
end
return false
end
end