Ir para conteúdo

Featured Replies

Postado
local tempo = 30 -- Dias para pegar
local premio = 5 -- Número de premium points que irá ganhar

-- Não mexa daqui pra baixo --
local storage = 18534
local acc = getPlayerAccountId(cid)
local tempo = tempo * 24 * 60 * 60

function onSay(cid, words, param)
	if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then
		if getPlayerStorageValue(cid, storage) > os.time() then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".")
		else
		setPlayerStorageValue(cid, storage, (tempo) + os.time())
		db.executeQuery("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc)
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ")
		end
	end
return true
end

Esqueci de colocar um sinal...

  • Respostas 16
  • Visualizações 1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • O mesmo erro? local tempo = 30 -- Dias para pegar local premio = 5 -- Número de premium points que irá ganhar -- Não mexa daqui pra baixo -- local storage = 18534 local tempo = tempo * 24 * 60 * 6

  • Vou tentar fazer aqui, se conseguir eu edito esse comentário...   Tenta assim: <talkaction log="yes" words="/premio;!premio" access="1" event="script" value="premio.lua"/> local

Posted Images

Postado

Tenta assim:

local tempo = 30 -- Dias para pegar
local premio = 5 -- Número de premium points que irá ganhar

-- Não mexa daqui pra baixo --
local storage = 18534
local tempo = tempo * 24 * 60 * 60

function onSay(cid, words, param)
local acc = getPlayerAccountId(cid)
	if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then
		if getPlayerStorageValue(cid, storage) > os.time() then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".")
		else
		setPlayerStorageValue(cid, storage, (tempo) + os.time())
		db.executeQuery("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc)
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ")
		end
	end
return true
end

 

Postado
  • Autor
13 minutos atrás, movie disse:

Tenta assim:


local tempo = 30 -- Dias para pegar
local premio = 5 -- Número de premium points que irá ganhar

-- Não mexa daqui pra baixo --
local storage = 18534
local tempo = tempo * 24 * 60 * 60

function onSay(cid, words, param)
local acc = getPlayerAccountId(cid)
	if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then
		if getPlayerStorageValue(cid, storage) > os.time() then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".")
		else
		setPlayerStorageValue(cid, storage, (tempo) + os.time())
		db.executeQuery("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc)
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ")
		end
	end
return true
end

 

 

image.thumb.png.cfa8a3eddf1bae29584b6be5b24ad2b9.png

 

Quando coloco on, tudo bem, mas quando usa da isso ai... e também não chega no site!

 

 

 

 

 

                                                                                                                                                     tumblr_nwmv2z4VEM1ujiquxo1_100.gif.2db64bb36f0f565e68ff2a90cb98f439.gif.59f4c4cf234d2f6906621cac0553a862.gif

https://github.com/italoxxx1

 

Postado
local tempo = 30 -- Dias para pegar
local premio = 5 -- Número de premium points que irá ganhar

-- Não mexa daqui pra baixo --
local storage = 18534
local tempo = tempo * 24 * 60 * 60

function onSay(cid, words, param)
local acc = getPlayerAccountId(cid)
	if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then
		if getPlayerStorageValue(cid, storage) > os.time() then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".")
		else
		setPlayerStorageValue(cid, storage, (tempo) + os.time())
		executeQuery("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc)
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ")
		end
	end
return true
end

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo