Help me deal with these modes
The post was edited 2 times, last by Coswars ().
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
The post was edited 2 times, last by Coswars ().
The post was edited 1 time, last by Coswars ().
Message: Undefined index: metal File: /includes/pages/game/ShowHarvestPage.class.php Line: 70 URL: coswars.space/game.php?page=Harvest PHP-Version: 5.6.35 PHP-API: litespeed 2Moons Version: 2.0.git Debug Backtrace: #0 /includes/pages/game/ShowHarvestPage.class.php(70): errorHandler(8, 'Undefined index...', 'FILEPATH ...', 70, Array) #1 /game.php(57): ShowHarvestPage->show() #2 {main} |
Coswars wrote:
I have the same problem
I change SQL %%PLANETS%% to uni1_planets
$sur = $db->select("SELECT id, metal, crystal, deuterium FROM `uni1_planets` where `id` = '".$Value."';");
$sur['metal'] Undefined index: metal
Does anyone have advice?
NOTICE
Message: Undefined index: metalFile: /includes/pages/game/ShowHarvestPage.class.php
Line: 70
URL: coswars.space/game.php?page=Harvest
PHP-Version: 5.6.35
PHP-API: litespeed
2Moons Version: 2.0.git
Debug Backtrace:
#0 /includes/pages/game/ShowHarvestPage.class.php(70): errorHandler(8, 'Undefined index...', 'FILEPATH ...', 70, Array)
#1 /game.php(57): ShowHarvestPage->show()
#2 {main}
Hellvodoo wrote:
$db->nativeQuery("LOCK TABLE %%PLANETS%% WRITE; UPDATE %%PLANETS%% SET `metal` = metal - ".$surr['metal'].", `crystal` = crystal - ".$surr['crystal'].", `deuterium` = deuterium - ".$surr['deuterium']." WHERE `id` = '".$Value."'; UNLOCK TABLES;");
What to do with these lines