|
#1
|
|||
|
|||
[TSSE 5.1] Casino
Code:
CREATE TABLE `blackjack` ( `userid` int(11) NOT NULL default '0', `points` int(11) NOT NULL default '0', `status` enum('playing','waiting') NOT NULL default 'playing', `cards` text NOT NULL, `date` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`userid`) ) ENGINE=MyISAM; CREATE TABLE `cards` ( `id` int(11) NOT NULL auto_increment, `points` int(11) NOT NULL default '0', `pic` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM; -- -- Dumping data for table `cards` -- INSERT INTO `cards` (`id`, `points`, `pic`) VALUES (1, 2, '2p.bmp'), (2, 3, '3p.bmp'), (3, 4, '4p.bmp'), (4, 5, '5p.bmp'), (5, 6, '6p.bmp'), (6, 7, '7p.bmp'), (7, 8, '8p.bmp'), (8, 9, '9p.bmp'), (9, 10, '10p.bmp'), (10, 10, 'vp.bmp'), (11, 10, 'dp.bmp'), (12, 10, 'kp.bmp'), (13, 1, 'tp.bmp'), (14, 2, '2b.bmp'), (15, 3, '3b.bmp'), (16, 4, '4b.bmp'), (17, 5, '5b.bmp'), (18, 6, '6b.bmp'), (19, 7, '7b.bmp'), (20, 8, '8b.bmp'), (21, 9, '9b.bmp'), (22, 10, '10b.bmp'), (23, 10, 'vb.bmp'), (24, 10, 'db.bmp'), (25, 10, 'kb.bmp'), (26, 1, 'tb.bmp'), (27, 2, '2k.bmp'), (28, 3, '3k.bmp'), (29, 4, '4k.bmp'), (30, 5, '5k.bmp'), (31, 6, '6k.bmp'), (32, 7, '7k.bmp'), (33, 8, '8k.bmp'), (34, 9, '9k.bmp'), (35, 10, '10k.bmp'), (36, 10, 'vk.bmp'), (37, 10, 'dk.bmp'), (38, 10, 'kk.bmp'), (39, 1, 'tk.bmp'), (40, 2, '2c.bmp'), (41, 3, '3c.bmp'), (42, 4, '4c.bmp'), (43, 5, '5c.bmp'), (44, 6, '6c.bmp'), (45, 7, '7c.bmp'), (46, 8, '8c.bmp'), (47, 9, '9c.bmp'), (48, 10, '10c.bmp'), (49, 10, 'vc.bmp'), (50, 10, 'dc.bmp'), (51, 10, 'kc.bmp'), (52, 1, 'tc.bmp'); CREATE TABLE `casino` ( `userid` int(10) NOT NULL default '0', `win` bigint(20) default NULL, `lost` bigint(20) default NULL, `trys` int(11) NOT NULL default '0', `date` datetime NOT NULL default '0000-00-00 00:00:00', `enableplay` enum('yes','no') NOT NULL default 'yes', `deposit` bigint(20) NOT NULL default '0', PRIMARY KEY (`userid`) ) ENGINE=MyISAM; CREATE TABLE `casino_bets` ( `id` int(10) unsigned NOT NULL auto_increment, `userid` int(10) NOT NULL default '0', `proposed` varchar(40) NOT NULL default '', `challenged` varchar(40) NOT NULL default '', `amount` bigint(20) NOT NULL default '0', `time` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `userid` (`userid`,`proposed`,`challenged`,`amount`) ) ENGINE=MyISAM; Code:
<?php require_once('./global.php'); gzip(); dbconn(); loggedinorreturn(); maxsysop(); parked(); ?> <base target="_blank"> <body bgcolor="#000000"> <p> <p align="center"><a href="/games.php"><img alt="Games" title="Games" width=50 hight=50 border="0" src="/pic/games.gif">......<a href="/casino.php"><img alt="Casino" title="Casino" width=50 hight=50 border="0" src="/pic/casino.gif">......<a href="/blackjack.php"><img alt="BlackJack" title="BlackJack" width=50 hight=50 border="0" src="/pic/blackjack.jpg"> <? create user casinobot make it whatever group you like and around line 352 of casino.php Find: Code:
VALUES (".sqlesc('casinobOT').", ".sqlesc('999999999').", ".sqlesc('<span style="color: #FF8040;"><strong><em>{username}</em></strong></span>').", '".TIMENOW."', ".sqlesc($casinobOT).")" or sqlerr(__FILE__, __LINE__); |
The Following User Says Thank You to Krypto For This Useful Post: | ||
Protheush (14th April 2014)
|
#2
|
|||
|
|||
Many thanks Krypto
|
#3
|
|||
|
|||
Thx
I say thank you for it nicely perfectly works.
|
#4
|
||||
|
||||
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 `cards` ( `id` int(11) NOT NULL auto_increment, `points` int(11) ' at line 10 edit: nvm my bad, found the issue and fixed. Last edited by DAKz; 10th January 2010 at 06:50. Reason: fixed |
#5
|
|||
|
|||
on ts 5.6 can't edit users ...i think it's something on sql... i think i have to modify something on casino_player_edit.php but i really don't know what..
i make the changes on a player but not changing... |
#6
|
|||
|
|||
the php not in your site need putting the in the main
|
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
Reply
Your best to use files in first post as there are errors in http://bvlist.com/tsse/1308-%5Btsse-...t-edition.html
Use This http://bvlist.com/3460-post1.html
__________________
Cheap Hosting From A Quality Host Last edited by fireman; 13th April 2010 at 05:35. Reason: add info |
#9
|
|||
|
|||
Quote:
|
#10
|
|||
|
|||
i believe i didn't explain the problem
on casino_player i take the option to edit user when i clicking to edit i use casino_player_edit.php so when i modifying his stats didn't really change nothing... so can anyone explain what's wrong? or how could this changed.... how i write before..is something an sql request what didn't work well...:) |
Tags |
51 , casino , tsse |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[TSSE 5.x] Casino TorrentSE.net Edition | wildboy211 | Mods & Themes | 6 | 31st October 2010 20:58 |
Casino-Blackjack Help | scream21m | Template Shares | 4 | 23rd December 2009 22:01 |
Shoutbox and Casino | C2DaJ | Template Shares | 5 | 1st October 2009 20:25 |
TSSE Casino Mod for 3.5/Can anyone help me upgrade | fireman | Template Shares | 0 | 2nd June 2009 02:55 |