Pagina 1 van 1

Lottery Mod

Geplaatst: 04 aug 2006, 19:48
door Spito
Na wat onenigheid te hebben gehad met de lottery mod was ik er eindelijk uit wat ik moest veranderen (user_items in user_points)
Ik blijf, maar ik wilde van tevore mod_insall opnieuw doen.

Dus ik de 2 lottery tabellen uit de database verwijderd, blijft er nogmeer te zijn!

Code: Selecteer alles

Running :: CREATE TABLE `phpbb_lottery` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` INT (20) NOT NULL, PRIMARY KEY(`id`), INDEX(`user_id`)) -> FAILED ---> Table 'phpbb_lottery' already exists

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_cost', '1') -> FAILED ---> Duplicate entry 'lottery_cost' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_ticktype', 'single') -> FAILED ---> Duplicate entry 'lottery_ticktype' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_length', '500000') -> FAILED ---> Duplicate entry 'lottery_length' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_name', 'Lottery') -> FAILED ---> Duplicate entry 'lottery_name' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_base', '50') -> FAILED ---> Duplicate entry 'lottery_base' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_start', '0') -> FAILED ---> Duplicate entry 'lottery_start' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_reset', '0') -> FAILED ---> Duplicate entry 'lottery_reset' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_status', '0') -> FAILED ---> Duplicate entry 'lottery_status' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_items', '0') -> FAILED ---> Duplicate entry 'lottery_items' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_win_items', '') -> FAILED ---> Duplicate entry 'lottery_win_items' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_show_entries', '0') -> FAILED ---> Duplicate entry 'lottery_show_entries' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_mb', '0') -> FAILED ---> Duplicate entry 'lottery_mb' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_mb_amount', '1') -> FAILED ---> Duplicate entry 'lottery_mb_amount' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_history', '1') -> FAILED ---> Duplicate entry 'lottery_history' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_currency', '') -> FAILED ---> Duplicate entry 'lottery_currency' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_item_mcost', '1') -> FAILED ---> Duplicate entry 'lottery_item_mcost' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_item_xcost', '500') -> FAILED ---> Duplicate entry 'lottery_item_xcost' for key 1

Running :: INSERT INTO phpbb_config (config_name, config_value) VALUES ('lottery_random_shop', '') -> FAILED ---> Duplicate entry 'lottery_random_shop' for key 1

Running :: CREATE TABLE `phpbb_lottery_history` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` INT (20) NOT NULL, `amount` INT (20) NOT NULL, `currency` CHAR (32) NOT NULL, `time` INT (20) NOT NULL, PRIMARY KEY(`id`), INDEX(`user_id`) ) -> FAILED ---> Table 'phpbb_lottery_history' already exists


Finished!
Some of the querys have failed, contact me so I can fix the errors.
Nou krijg ik dit, en laad mijn lottery helemaal niet meer, ik heb alle mijn aangepaste files al een keer opnieuw geupload, maar dit heeft niets geholpen.
Hoe kan ik ervoor zorgen dat ik alles weer kan runnen zodat ik complete krijg?

Geplaatst: 04 aug 2006, 19:51
door Paul
Je had de sql al een keer uitgevoerd, dus dat bestaat allemaal al ;)

Geplaatst: 04 aug 2006, 19:52
door Spito
Maar waarom laat mijn lottery.php dan niet ??

Ik heb alleen alle "user_items" in "user_points" veranderd

Geplaatst: 04 aug 2006, 19:55
door Spito
Spito schreef:Maar waarom laat mijn lottery.php dan niet ??

Ik heb alleen alle "user_items" in "user_points" veranderd
Btw // ik heb nu de standaard lottery.php erop gezet nu krijg ik dit :

Parse error: syntax error, unexpected $end, expecting ',' or ')' in /home/eg5171/domains/familieboterman.nl/public_html/forum/phpBB2/lottery.php on line 88

Line 88 :

if ( isset($HTTP_GET_VARS['action']) || isset($HTTP_POST_VARS['action']) ) { $action = ( isset($HTTP_POST_VARS['action']) ) ? $HTTP_POST_VARS['action'] : $HTTP_GET_VARS['action']; }

Geplaatst: 04 aug 2006, 20:23
door Spito
Heb net alles opnieuw gescript, maar die error blijft er staan ...