Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coolgames
    New Member
    • Oct 2007
    • 168

    Error

    i don't know what's wrong with this error:

    "Parse error: syntax error, unexpected T_CONSTANT_ENCA PSED_STRING, expecting ')' in /home/yuvoo/public_html/uzumakionline/modules/village_music.p hp on line 12"

    code:

    <?php

    function village_music_g etmoduleinfo(){
    $info = array(
    "name"=>"Villag e Music (Ops)",
    "version"=>"0.1 CG",
    "author"=>"`2Ra ja Naveen Kavuru (coolgames)",
    "category"=>"CG ",
    "settings"=>arr ay(
    "konohaname"=>" Name of the Konohagakure Music,|",
    "konohaurl"=>"U RL of the embedded file: http://,|"
    "mistname"=>"Na me of the Hidden Mist Village Music|",
    "misturl"=> "URL of the embedded file: http://,|"
    "sandname"=>"Na me of the Sunagakure music|",
    "sandurl"=> "URL of the embedded file: http://,|"
    "soundname"=>"N ame of the Otogakure music,|",
    "soundurl"=>"UR L of the embedded file: http://,|"
    "leafname"=>"Na me of the Hoshigakure music,|",
    "leafurl"=> "URL of the embedded file: http://,|"
    "shadesname"=>" Name of the Shades music,|",
    "shadesurl"=>"U RL of the embedded file: http://,|"
    "rockname"=>"Na me of the Rock music,|",
    "rockurl"=> "URL of the embedded file: http://,|"
    )
    "prefs"=>ar ray(
    "Village Music Cities,title",
    "user_konoha"=> "Display Songs in Konohagakure?,b ool|1",
    "user_mist"=>"D isplay Songs in Hidden Mist Village?,bool|0 ",
    "user_sand"=>"D isplay Songs in Sunagakure?,boo l|0",
    "user_sound"=>" Display Songs in Otogakure?,bool |0",
    "user_leaf"=>"D isplay Songs in Hoshigakure?,bo ol|0",
    "Village Music Other,title",
    "user_shades"=> "Display Songs in Shades?,bool|1" ,
    "user_rock"=>"D isplay Songs in Curious Looking Rock?,bool|1",
    )

    );
    return $info;
    }

    can anyone please tell me what's wrong with the code.....
    thank you very much
  • RuthC
    New Member
    • Nov 2007
    • 33

    #2
    Hi coolgames,

    You missed the ',' to seperate the array elements
    try this now
    Code:
    <?
    
    function village_music_getmoduleinfo(){
    $info = array(
    "name"=>"Village Music (Ops)",
    "version"=>"0.1CG",
    "author"=>"`2Raja Naveen Kavuru (coolgames)",
    "category"=>"CG",
    "settings"=>array(
    "konohaname"=>"Name of the Konohagakure Music|",
    "konohaurl"=>"URL of the embedded file: http://|",
    "mistname"=>"Name of the Hidden Mist Village Music|",
    "misturl"=>"URL of the embedded file: http://|",
    "sandname"=>"Name of the Sunagakure music|",
    "sandurl"=>"URL of the embedded file: http://|",
    "soundname"=>"Name of the Otogakure musi|",
    "soundurl"=>"URL of the embedded file: http://|",
    "leafname"=>"Name of the Hoshigakure music|",
    "leafurl"=>"URL of the embedded file: http://|",
    "shadesname"=>"Name of the Shades music|",
    "shadesurl"=>"URL of the embedded file: http://|",
    "rockname"=>"Name of the Rock music|",
    "rockurl"=>"URL of the embedded file: http://|"
    ),
    "prefs"=>array(
    "Village Music Cities,title",
    "user_konoha"=>"Display Songs in Konohagakure?,bool|1",
    "user_mist"=>"Display Songs in Hidden Mist Village?,bool|0",
    "user_sand"=>"Display Songs in Sunagakure?,bool|0",
    "user_sound"=>"Display Songs in Otogakure?,bool|0",
    "user_leaf"=>"Display Songs in Hoshigakure?,bool|0",
    "Village Music Other,title",
    "user_shades"=>"Display Songs in Shades?,bool|1",
    "user_rock"=>"Display Songs in Curious Looking Rock?,bool|1",
    )
    
    );
    return $info;
    }

    Comment

    • coolgames
      New Member
      • Oct 2007
      • 168

      #3
      thankx a LOT!.. that was cake..
      but, there's another error on line 25.... same code.


      <?php

      function village_music_g etmoduleinfo(){
      $info = array(
      "name"=>"Villag e Music (Ops)",
      "version"=>"0.1 CG",
      "author"=>"`2Ra ja Naveen Kavuru (coolgames)",
      "category"=>"CG ",
      "settings"=>arr ay(
      "konohaname"=>" Name of the Konohagakure Music|",
      "konohaurl"=>"U RL of the embedded file: http://|",
      "mistname"=>"Na me of the Hidden Mist Village Music|",
      "misturl"=> "URL of the embedded file: http://|",
      "sandname"=>"Na me of the Sunagakure music|",
      "sandurl"=> "URL of the embedded file: http://|",
      "soundname"=>"N ame of the Otogakure music|",
      "soundurl"=>"UR L of the embedded file: http://|",
      "leafname"=>"Na me of the Hoshigakure music|",
      "leafurl"=> "URL of the embedded file: http://|",
      "shadesname"=>" Name of the Shades music|",
      "shadesurl"=>"U RL of the embedded file: http://|",
      "rockname"=>"Na me of the Rock music|",
      "rockurl"=> "URL of the embedded file: http://|",
      )
      "prefs"=>ar ray(
      "Village Music Cities,title",
      "user_konoha"=> "Display Songs in Konohagakure?,b ool|1",
      "user_mist"=>"D isplay Songs in Hidden Mist Village?,bool|0 ",
      "user_sand"=>"D isplay Songs in Sunagakure?,boo l|0",
      "user_sound"=>" Display Songs in Otogakure?,bool |0",
      "user_leaf"=>"D isplay Songs in Hoshigakure?,bo ol|0",
      "Village Music Other,title",
      "user_shades"=> "Display Songs in Shades?,bool|1" ,
      "user_rock"=>"D isplay Songs in Curious Looking Rock?,bool|1",
      )

      );
      return $info;
      }

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        You missed the comma after the bracket:

        [php]
        <?php

        function village_music_g etmoduleinfo(){
        $info = array(
        "name"=>"Villag e Music (Ops)",
        "version"=>"0.1 CG",
        "author"=>"`2Ra ja Naveen Kavuru (coolgames)",
        "category"=>"CG ",
        "settings"=>arr ay(
        "konohaname"=>" Name of the Konohagakure Music|",
        "konohaurl"=>"U RL of the embedded file: http://|",
        "mistname"=>"Na me of the Hidden Mist Village Music|",
        "misturl"=> "URL of the embedded file: http://|",
        "sandname"=>"Na me of the Sunagakure music|",
        "sandurl"=> "URL of the embedded file: http://|",
        "soundname"=>"N ame of the Otogakure music|",
        "soundurl"=>"UR L of the embedded file: http://|",
        "leafname"=>"Na me of the Hoshigakure music|",
        "leafurl"=> "URL of the embedded file: http://|",
        "shadesname"=>" Name of the Shades music|",
        "shadesurl"=>"U RL of the embedded file: http://|",
        "rockname"=>"Na me of the Rock music|",
        "rockurl"=> "URL of the embedded file: http://|",
        ),
        "prefs"=>ar ray(
        "Village Music Cities,title",
        "user_konoha"=> "Display Songs in Konohagakure?,b ool|1",
        "user_mist"=>"D isplay Songs in Hidden Mist Village?,bool|0 ",
        "user_sand"=>"D isplay Songs in Sunagakure?,boo l|0",
        "user_sound"=>" Display Songs in Otogakure?,bool |0",
        "user_leaf"=>"D isplay Songs in Hoshigakure?,bo ol|0",
        "Village Music Other,title",
        "user_shades"=> "Display Songs in Shades?,bool|1" ,
        "user_rock"=>"D isplay Songs in Curious Looking Rock?,bool|1",
        )

        );
        return $info;
        }
        ?>
        [/php]
        USE CODE TAGS!

        Comment

        • coolgames
          New Member
          • Oct 2007
          • 168

          #5
          Originally posted by markusn00b

          USE CODE TAGS!
          hah! sorry about that, i am using the simple editor. thankx for the help


          HAPPY NEW YEAR!

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            Originally posted by coolgames
            hah! sorry about that, i am using the simple editor. thankx for the help


            HAPPY NEW YEAR!
            happy new year to yourself :)

            Comment

            Working...