is it possible to include dark matter and antimatter to the bank
2moons Bank Mod
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
Yes of course that this is possible you just have to add it in the codeYou can contact me by Discord or Telegram
Discord Galactic Conquest
Video Youtube dev + tutorials
Webside -
Your mod bank does not work for version 1.8 git
-
судя по коду все рабочее, нужно просто смотреть ошибки и допилить немножкоКто к нам с чем зачем, тот от того и того!
-
попробую еще раз
-
я это ' BANK' => DB_PREFIX.'bank', не могу поместить в dbtables.php, выдает сразу белый экран с ошыбками
-
USER ERROR Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%%BANK%% WHERE user_id = '1'' at line 1
Query-Code:SELECT * FROM %%BANK%% WHERE user_id = 1 ;
File: /includes/classes/Database.class.php
Line: 123
URL: skywars.kl.com.ua/game.php?page=bank
PHP-Version: 5.5.38
PHP-API: fpm-fcgi
MySQL-Client-Version: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $
2Moons Version: 1.8.git
Debug Backtrace:
#0 /includes/classes/Database.class.php(199): Database->_query('SELECT * FROM %...', Array, 'select')
#1 /includes/pages/game/ShowBankPage.class.php(50): Database->selectSingle('SELECT * FROM %...', Array)
#2 /game.php(57): ShowBankPage->show()
#3 {main} -
-
я добавил define('BANK' , DB_PREFIX.'bank'); в dbtables но всё равно не работает пишет
USER ERROR Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%%BANK%% WHERE user_id = '1'' at line 1
Query-Code:SELECT * FROM %%BANK%% WHERE user_id = 1 ;
File: /includes/classes/Database.class.php
Line: 123
URL: skywars.kl.com.ua/game.php?page=bank
PHP-Version: 5.5.38
PHP-API: fpm-fcgi
MySQL-Client-Version: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $
2Moons Version: 1.8.git
Debug Backtrace:
#0 /includes/classes/Database.class.php(199): Database->_query('SELECT * FROM %...', Array, 'select')
#1 /includes/pages/game/ShowBankPage.class.php(50): Database->selectSingle('SELECT * FROM %...', Array)
#2 /game.php(57): ShowBankPage->show()
#3 {main} -
have you added the table to mysql?
-
The database has
CREATE TABLE `uni1_bank` (
`Id` int (11) unsigned NOT NULL AUTO_INCREMENT,
`User_id` int (11) unsigned NOT NULL DEFAULT '0',
`Bank_metal` DOUBLE (100, 0) unsigned NOT NULL DEFAULT '0',
`Bank_cristal` DOUBLE (100, 0) unsigned NOT NULL DEFAULT '0',
`Bank_deuterium` DOUBLE (100, 0) unsigned NOT NULL DEFAULT '0',
`Bank_time_update` int (11) unsigned NOT NULL DEFAULT '0',
`Bank_time_retrait` int (11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE = MyISAM DEFAULT CHARSET = utf8; -
All installed
-
add the files to the custom in the lang folder
dtables in the includes folder -
what does line 123 in dtables say
-
Hey i got this error
Undefined variable: depot_crital
File: /includes/pages/game/class.ShowBankPage.php (Line 144)
on line 143-145
$PLANET['metal'] -= $depot_metal;
$PLANET['crystal'] -= $depot_crital;
$PLANET['deuterium'] -= $depot_deuterium; -
-
holy shit......i didnt even notice that....lol.....ty
-
lnow how to add darkmatter to it?
should i update the sql file -
yes
/!\ Edit `uni01_bank` for database
SQL-Query
- CREATE TABLE IF NOT EXISTS `uni01_bank` (
- `id` int(11) unsigned NOT NULL,
- `user_id` int(11) unsigned NOT NULL DEFAULT '0',
- `bank_metal` double(100,0) unsigned NOT NULL DEFAULT '0',
- `bank_cristal` double(100,0) unsigned NOT NULL DEFAULT '0',
- `bank_deuterium` double(100,0) unsigned NOT NULL DEFAULT '0',
- `bank_darkmatter` double(100,0) NOT NULL DEFAULT '0',
- `bank_time_update` int(11) unsigned NOT NULL DEFAULT '0',
- `bank_time_retrait` int(11) unsigned NOT NULL DEFAULT '0'
- ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
+
Update filesThe post was edited 2 times, last by JudgeDead ().
-
thanks...worked...ill make the changes to the tpl and php
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0