View Single Post
  #6  
Old 09-21-2016, 09:36 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 68,108
Dinocanid is on a distinguished road
Default

It took me a while of staring to figure out the problem xD
You're missing quotation marks in some places/ have them in the wrong spots. See this?

PHP Code:
$document->add(new Comment("<center>Cant guarantee a win!</center>, FALSE)); 
It should be:

PHP Code:
$document->add(new Comment("<center>Cant guarantee a win!</center>, FALSE")); 
This:
PHP Code:
$document->add(new Comment("<b><center>Eyres Hand".</center></b>", FALSE)); 
Should be this:
PHP Code:
$document->add(new Comment("<b><center>Eyres Hand.</center></b>, FALSE")); 
(You can check and fix all the others that are like that)

Basically have only/make sure you have 2 quotation marks. So the "formula" should be:
$document->add(new Comment("CodeGoesHere"));
No extra quotation marks should go anywhere inside that line.

An easy way to spot these mistakes is looking at your code and seeing if too many of the lines are blue. If your "elseif" statement is blue instead of green, then you probably need to fix the quotation marks. The same goes for "if" statements. "$document" should also always be gold/yellow.

Last edited by Dinocanid; 09-21-2016 at 09:44 PM.
Reply With Quote