|
#1
|
|||
|
|||
Betting system
Hi, I have search in hour but I can not fint a betting system to tbdev..
I will bet on sports, ex: football ect. Are it someone know where I can find that? //LuddeSnutte |
#2
|
|||
|
|||
I want betting for TS. :shock:
|
#3
|
|||
|
|||
I want betting game too TS 5.4.1
Last edited by Muikku; 9th June 2010 at 07:40. |
#4
|
|||
|
|||
hello
here we go
i wish to mention it's not my work it's a tbdeved version translated in hungarian by angelo and with bibicu help :) so if you need another language you have to translate 1step SQL Code:
DROP TABLE IF EXISTS `bet`; CREATE TABLE `bet` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(50) NOT NULL default '', `active` tinyint(1) unsigned NOT NULL default '0', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; -- -- Dumping data for table `bet` -- -- -------------------------------------------------------- -- -- Table structure for table `bet_winns` -- DROP TABLE IF EXISTS `bet_winns`; CREATE TABLE `bet_winns` ( `id` int(10) unsigned NOT NULL auto_increment, `betid` int(10) unsigned NOT NULL default '0', `choice` tinyint(2) default NULL, PRIMARY KEY (`id`), KEY `betid` (`betid`), KEY `choice` (`choice`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; -- -- Dumping data for table `bet_winns` -- -- -------------------------------------------------------- -- -- Table structure for table `betchoices` -- DROP TABLE IF EXISTS `betchoices`; CREATE TABLE `betchoices` ( `id` int(10) unsigned NOT NULL auto_increment, `betid` int(10) unsigned NOT NULL default '0', `name` varchar(50) NOT NULL default '', `active` tinyint(1) unsigned NOT NULL default '0', `choice1` varchar(40) default NULL, `choice2` varchar(40) default NULL, `choice3` varchar(40) default NULL, `choice4` varchar(40) default NULL, `choice5` varchar(40) default NULL, `choice6` varchar(40) default NULL, `choice7` varchar(40) default NULL, `choice8` varchar(40) default NULL, `choice9` varchar(40) default NULL, `choice10` varchar(40) default NULL, `payout1` decimal(2,1) default NULL, `payout2` decimal(2,1) default NULL, `payout3` decimal(2,1) default NULL, `payout4` decimal(2,1) default NULL, `payout5` decimal(2,1) default NULL, `payout6` decimal(2,1) default NULL, `payout7` decimal(2,1) default NULL, `payout8` decimal(2,1) default NULL, `payout9` decimal(2,1) default NULL, `payout10` decimal(2,1) default NULL, PRIMARY KEY (`id`), KEY `betid` (`betid`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; -- -- Dumping data for table `betchoices` -- -- -------------------------------------------------------- -- -- Table structure for table `bets` -- DROP TABLE IF EXISTS `bets`; CREATE TABLE `bets` ( `id` int(10) unsigned NOT NULL auto_increment, `userid` int(10) unsigned NOT NULL default '0', `betid` int(10) unsigned NOT NULL default '0', `choice` tinyint(2) unsigned NOT NULL default '0', `bet` bigint(13) unsigned NOT NULL default '0', `paid` tinyint(1) unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `userid` (`userid`), KEY `betid` (`betid`), KEY `choice` (`choice`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; -- -- Dumping data for table `bets` -- [code] <? require 'global.php'; dbconn(); loggedinorreturn(); $action = $_GET["action"]; if ($action == "placebet") { $betid = 0 + $_POST["bcid"]; if ($betid == "") stderr("Error", "Oh Nice One You Fucked Up."); $i = 1; while ($i < 11) { $bi = "amount" . $i; if ($_POST[$bi] != "") { $bis = $bi; $amount = 0 + $_POST[$bi]; } $i++; } $amount = round($amount * 1048576); $maxamount = round($CURUSER['uploaded'] / 10); if ($amount > $maxamount) stderr("Hiba!", "Nincs fedezete a fogad Last edited by Marco; 9th June 2010 at 10:53. |
The Following User Says Thank You to Marco For This Useful Post: | ||
mmisu120000 (9th June 2010)
|
#5
|
||||
|
||||
Yes! it's working!
But, the only thing is that I don't speak hungarian ... anyone that can translate it in english? Good job, marco !
__________________
"How terrible is wisdom when it holds no benefit for the wise?" - Louis Cypher WDW Tracker - Using heavy modified TSSE |
#6
|
|||
|
|||
you have
you need to add all lag files to this which are missing
|
#7
|
|||
|
|||
:D
here the english php attached...please be kind ...for my english lang :)
maybe somebody transfer this topic to solved mods on TS btw. this mod have 2 issues.... can't close the bets when the match is started.... and it's not sending automatically PM-s to the winners.... :) good luck Last edited by Marco; 10th June 2010 at 18:15. |
#8
|
|||
|
|||
thanx the mod but sql file not wor for me whats wrog whit that?
phpmyadmin gives that error Code:
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; CREATE TABLE `bet` ( `id` int(10) unsigned NOT NULL auto_increment, `' at line 1 can someone do the sql file works in tsse 5.4.1 version? Thanx! |
#9
|
|||
|
|||
i suppose it's different phpmyadmin and the pronnounce is the trouble...take a look on your install sql what is different from this
if you send me your sql (fresh one) not your db i will figure out |
#10
|
|||
|
|||
Quote:
i have this sql code what is your post in up and that not work for me and my MySQL Version 5.0.32-Debian_7 Now i get this error SQL ERROR Table 'TSSE.bet' doesn't exist in __FILE, line 189 how fix Last edited by Muikku; 15th June 2010 at 12:44. |
Tags |
betting , system |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Announce System | christyz89 | Template Shares | 4 | 4th September 2009 11:00 |
IP value ban system | Muikku | Template Shares | 2 | 2nd July 2009 15:03 |
How can i remove the TTL System | DooM | TBDev | 2 | 25th May 2009 14:56 |
Betting game | Muikku | Template Shares | 0 | 28th April 2009 21:10 |
[TTRADER] Betting system ?? | Ripparinn | Torrent Trader | 0 | 6th April 2009 10:06 |