Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Q23A
Apprentice
Posts: 30
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0
|
MySql
I don't know I create topic in right place. I hope I'm.
If I understand right with this script I can create auto tournament.
Problem is that I don't have any ideas have to use mysql.
basically what I need is that mysql check when start tournament.
Example monday 20:00 STARTTOURNAMENT1
Tuesday 21:00 STARTTOURNAMENT2
ETC...
Thank you
Code:
[FUNCTION STARTEVENTS]
IF (<db.connected>)
db.query "SELECT `status` FROM `events`"
local.event = <eval <db.row.0>>
db.query "UPDATE `events` SET `status` = 0"
IF (<local.event> == 1)
STARTTOURNAMENT1
ELIF (<local.event> == 2)
STARTTOURNAMENT2
ELIF (<local.event> == 3)
STARTTOURNAMENT3
ELIF (<local.event> == 4)
STARTTOURNAMENT4
ELIF (<local.event> == 5)
STARTTOURNAMENT5
ELIF (<local.event> == 6)
STARTTOURNAMENT6
ELIF (<local.event> == 7)
STARTTOURNAMENT7
ELIF (<local.event> == 8)
STARTTOURNAMENT8
ELIF (<local.event> == 9)
STARTTOURNAMENT9
ELIF (<local.event> == 10)
STARTTOURNAMENT10
ENDIF
ELSE
db.connect
ENDIF
|
|
06-11-2012 07:56 AM |
|
|
User(s) browsing this thread: 1 Guest(s)