GAH! evil code!

Discussion in 'Software' started by magic!, Apr 12, 2008.

  1. magic!

    magic! Private E-2

    Plese, I need help and I have been trying to get this odd parse error to go away... I have tryed every method for killing it but none of them worked.

    error: syntax error, unexpected T_STRING, expecting ')' in weaponeditor.php on line 40


    I tryed giving it it's ) but it said it wanted a solid gold )... who knew code was so greedy...
     

    Attached Files:

  2. magic!

    magic! Private E-2

    Sorry for double posting but I attached the wrong file... here is the right one.
     

    Attached Files:

  3. noahawk

    noahawk Corporal

    Are you missing an ending ) on line 37, near $masters,1? Usually php code gives a line number that is off by a few, so you should look on both sides of the error line.
     
  4. geminidomino

    geminidomino Private E-2

    Your error is here.

    Code:
    $weaponarray=array(
    
    	"Weapon,title",
    
    	"weaponid"=>"Weapon ID,hidden",
    
    	"weaponname"=>"Weapon Name",
    
    	"damage"=>"Damage,range,1,$masters,1;
    
    
    You should have a closing parenthesis after $masters,1 before the semi.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds