DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • May 26, 2016, 05:15:18 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Game seting error  (Read 3391 times)
0 Members and 1 Guest are viewing this topic.
Ashuma
Guest
« on: June 25, 2005, 10:33:30 AM »

Ok, i got the server running in my home pc but i can't change the game settings, every time i click on it i got this error:


Parse error: parse error, expecting `'('' in f:\lotgd-1.0.2\configuration.php on line 118

Can someone help please?
Logged
Ashuma
Guest
« Reply #1 on: June 25, 2005, 11:59:58 AM »

sorry forgot to put the code i have

if ($save == "") {
         $info = get_module_info($module);
         if (count($info['settings'])>0){
            load_module_settings($mostrecentmodule);
            $msettings=array();
            while (list($key,$val)=each($info['settings'])){
118                          if *(is_array($val)) (
                  $v = $val[0];
                  $x = explode("|", $v);
                  $val[0] = $x[0];
                  $x[0] = $val;
               } else {
                  $x = explode("|",$val);
               }
               $msettings[$key]=$x[0];
               if (!isset($module_settings[$mostrecentmodule][$key]) &&
                     isset($x[1])) {
                  $module_settings[$mostrecentmodule][$key]=$x[1];
               }
            }
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #2 on: June 25, 2005, 12:02:20 PM »

If you are talking about Modules, then this is in the wrong forum.

If you are having trouble with a core file, please upload a clean version of that file.

It is recommended that core modification not be done, as it passes out of the realm of support from the Core Coders.

Thank you.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #3 on: June 25, 2005, 12:37:14 PM »

Wrong forum (this one is for 0.97) but ...
Code:
118                          if *(is_array($val)) (
should be:
Code:
118                          if (is_array($val)) (
The asterisk has nothing to do with the IF statement, and more then that, if you'd read carefully the warning given by PHP
Quote
expecting `'('' in f:\lotgd-1.0.2\configuration.php on line 118
you'd found yourself what was wrong in line 118
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
Ashuma
Guest
« Reply #4 on: June 25, 2005, 12:53:42 PM »

I've done it, then i got an error on 119, but i managed to make it worl using a echo comand.
 thanx for the answer
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
38 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search