Creating the top navigation menu for 1.8 as in the xtterium
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
foreach($reslist['resstype'][1] as $resourceID) { $resourceTable[$resourceID]['name'] = $resource[$resourceID]; $resourceTable[$resourceID]['current'] = $PLANET[$resource[$resourceID]]; $resourceTable[$resourceID]['max'] = $PLANET[$resource[$resourceID].'_max']; $resourceTable[$resourceID]['percent'] = round($PLANET[$resource[$resourceID]] * 100 / $PLANET[$resource[$resourceID].'_max']); if($PLANET['planet_type'] == 1){ $resourceTable[$resourceID]['information'] = pretty_number($PLANET[$resource[$resourceID].'_perhour'] + $config->{$resource[$resourceID].'_basic_income'} * $resourceSpeed); $resourceTable[$resourceID]['informationd'] = pretty_number(($PLANET[$resource[$resourceID].'_perhour'] + $config->{$resource[$resourceID].'_basic_income'} * $resourceSpeed) *24); $resourceTable[$resourceID]['informationz'] = pretty_number(($PLANET[$resource[$resourceID].'_perhour'] + $config->{$resource[$resourceID].'_basic_income'} * $resourceSpeed) * 24 * 7); }else{ $resourceTable[$resourceID]['information'] = 0; $resourceTable[$resourceID]['informationd'] = 0; $resourceTable[$resourceID]['informationz'] = 0; } if($USER['urlaubs_modus'] == 1 $PLANET['planet_type'] != 1) { $resourceTable[$resourceID]['production'] = $PLANET[$resource[$resourceID].'_perhour']; } else { $resourceTable[$resourceID]['production'] = $PLANET[$resource[$resourceID].'_perhour'] + $config->{$resource[$resourceID].'_basic_income'} * $resourceSpeed; } } foreach($reslist['resstype'][2] as $resourceID) { $resourceTable[$resourceID]['name'] = $resource[$resourceID]; $resourceTable[$resourceID]['used'] = $PLANET[$resource[$resourceID].'_used']; $resourceTable[$resourceID]['max'] = $PLANET[$resource[$resourceID]]; $resourceTable[$resourceID]['used1'] = abs($PLANET[$resource[$resourceID].'_used']); if($PLANET[$resource[$resourceID]] == 0){ $resourceTable[$resourceID]['percent'] = 0; $resourceTable[$resourceID]['percenta'] = 0; }else{ $resourceTable[$resourceID]['percent'] = 100 / $PLANET[$resource[$resourceID]] * ($PLANET[$resource[$resourceID]] - abs($PLANET[$resource[$resourceID].'_used'])) / 2; $resourceTable[$resourceID]['percenta'] = abs(100 / $PLANET[$resource[$resourceID]] * ($PLANET[$resource[$resourceID]] - abs($PLANET[$resource[$resourceID].'_used'])) / 2); } }
Fatal error: Class 'AbstractGamePage' not found in D:\2MOONS\OPESERVER\OpenServer\domains\OXWARS\includes\pages\game\ShowErrorPage.class.php on line 20 -
It does not work anything
-
its the topnav that causing the problem
-
it's just no words
-
Warning: Cannot modify header information - headers already sent by (output started at D:\2MOONS\OPESERVER\OpenServer\domains\OXWARS\includes\pages\game\AbstractGamePage.class.php:1) in D:\2MOONS\OPESERVER\OpenServer\domains\OXWARS\includes\common.php on line 39
WARNING Message: Cannot modify header information - headers already sent by (output started at /includes/pages/game/AbstractGamePage.class.php:1)
File: /includes/classes/HTTP.class.php
Line: 35
URL: oxwars/game.php
PHP-Version: 5.3.29
PHP-API: apache2handler
2Moons Version: 1.8.git
Debug Backtrace:
#0 [internal function]: errorHandler(2, 'Cannot modify h...', 'FILEPATH ...', 35, Array)
#1 /includes/classes/HTTP.class.php(35): header('P3P: CP="IDC DS...')
#2 /includes/common.php(66): HTTP::sendHeader('P3P', 'CP="IDC DSP COR...')
#3 /game.php(24): require('FILEPATH ...')
#4 {main} -
at the top of your post is the menu you wanted, I gave you what to edit. for the topnav you still have to edit.
I have not put you all. -
-
yes it is not even compatible with 1.8 that there edit some bugs
-
It works perfectly with 1.8 / 1.9, is that you do not know how to do, you are unpleasant, I would do nothing for you, maybe one will want to finish it
-
dud he gave whats needs to be edited and implemented . he did 80% of the work the rest needs to be done by the person
-
Okay I'll try on witchcraft
-
Сообщение: Undefined index: percent
добавь percent в ShowOverviewPage-> show () -
It is possible more in detail how and where and what to add
-
well, please do without any jokes
-
-
lol
-
Well, where the menu that there is nothing
-
I can't get to it just yet...im too busy at work..... you can't figure it out yourself and no one wants to help you here try going to stack Overflow and see if they can help you
-
if you want a simple top now that you can design and edit yourself and easily implement then go to this website
w3schools.com/howto/howto_js_topnav.asp
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0