Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 20:51:42 <valonia-> Here u have an example!
- 20:51:51 <valonia-> alias ihl_showgames {
- 20:51:51 <valonia-> var %sql SELECT * FROM bot_games WHERE timestamp > 1000000000
- 20:51:51 <valonia-> var %res = $mysql_query(%track.db, %sql)
- 20:51:51 <valonia-> while ($mysql_fetch_row(%res, row)) {
- 20:51:52 <valonia-> var %t.games %t.games $chr(91) $+ $gcolor($chr(35) $+ $hget(row, id)) Duration: $left($timestamp($hget(row, timestamp)),-3) $+ mins $+ $chr(93)
- 20:51:52 <valonia-> }
- 20:51:55 <valonia-> mysql_free %res
- 20:51:59 <valonia-> if (!%t.games) describe $iif(!$chan,$nick,$chan) There are no games in progress!
- 20:52:01 <valonia-> else describe $iif(!$chan,$nick,$chan) Games in progress: %t.games
- 20:52:03 <valonia-> }
- 20:52:17 <valonia-> thats .games
- 20:52:18 <valonia-> :>
- 20:52:52 <valonia-> u see how easy it is!
Add Comment
Please, Sign In to add comment