Jump to content
  • 0

Time from mysql + lua


ByLost

Question

Hello, guys.

I'm needing to do a quest to insert the time into the database.

I need you to enter the database when the query row, "time" column has a countdown of 23:59:59.
Is it possible?

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
  • VIP

Does >> this <<  help?

 

quest

Spoiler
quest admin_painel begin
    state start begin
		when 40004.use with pc.is_gm() begin
			local count, value = mysql_direct_query("SELECT name FROM player.player WHERE id ='10009'; ")
			--mysql_direct_query("UPDATE account.account SET status = 'BLOCK', availDt = '0000-00-00 00:00:00' WHERE login = 'admin';")
			syschat("Leader: "..tostring(value[1].name).."")
		end
	end
end

 

 

Link to comment
  • 0
6 minutes ago, EnKor said:

Does >> this <<  help?

 

quest

  Hide contents

quest admin_painel begin
    state start begin
		when 40004.use with pc.is_gm() begin
			local count, value = mysql_direct_query("SELECT name FROM player.player WHERE id ='10009'; ")
			--mysql_direct_query("UPDATE account.account SET status = 'BLOCK', availDt = '0000-00-00 00:00:00' WHERE login = 'admin';")
			syschat("Leader: "..tostring(value[1].name).."")
		end
	end
end

 

 

 

That's about it. I need time to slow down when entering the query.

Link to comment
  • 0
  • VIP
Posted (edited)

 

???  that? ot this one?

 

Spoiler
when 9011.chat."delay test" begin
			say("asd")
			say("[DELAY value; 1000]. . . . . . . . . . .[/DELAY]")   --< <<<<<< This one?!
			say("asdasdasd")
		end
	

 

 

Edited by EnKor
Link to comment
  • 0
18 minutes ago, EnKor said:

 

???  that? ot this one?

 

  Hide contents

when 9011.chat."delay test" begin
			say("asd")
			say("[DELAY value; 1000]. . . . . . . . . . .[/DELAY]")   --< <<<<<< This one?!
			say("asdasdasd")
		end
	

 

 

no.. 
time('23:59:59') query for database not quest.
countdown query

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.