mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-06-15 09:14:30 +02:00
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:
parent
8e0df92f98
commit
98f90eb442
@ -21,7 +21,6 @@ function onSay(cid, words, param)
|
|||||||
|
|
||||||
-- Detect if we got any results
|
-- Detect if we got any results
|
||||||
if orderQuery ~= false then
|
if orderQuery ~= false then
|
||||||
repeat
|
|
||||||
-- Fetch order values
|
-- Fetch order values
|
||||||
local q_id = result.getDataInt(orderQuery, "id")
|
local q_id = result.getDataInt(orderQuery, "id")
|
||||||
local q_type = result.getDataInt(orderQuery, "type")
|
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.
|
-- So use type 7+ for custom stuff, like etc packages.
|
||||||
-- if q_type == 7 then
|
-- if q_type == 7 then
|
||||||
-- end
|
-- end
|
||||||
until not result.next(orderQuery)
|
|
||||||
result.free(orderQuery)
|
result.free(orderQuery)
|
||||||
if not served then
|
if not served then
|
||||||
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have no orders to process in-game.")
|
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())
|
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Can only be executed once every "..cooldown.." seconds. Remaining cooldown: ".. getPlayerStorageValue(cid, storage) - os.time())
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user