Malorie (bagpiper) wrote in component_help,
Malorie
bagpiper
component_help

Random Quote Eroor Message

When trying to add the code for "random quote," I get this error message:


Compile error: line 20, column 5: Unknown token encountered while parsing layer: [TokenKeyword] = var
S2::Layer, S2/Layer.pm, 67
S2::Compiler, S2/Compiler.pm, 27

Context

16: # Determine the colouring for the rounded corners based on the actual page colours. Do not change.
17: # You only need one copy of these four lines per function, so if you already have it in the function you place this code
18: # in, then you can remove these four lines since the variable will already be defined. Make sure that the lines appear
19: # before any code which uses the $corner_color variable.
20: var Color header = $*header_bgcolor;
21: var Color headerMinus5 = $header->darker(50);
22: var Color headerPlus3 = $header->lighter(30);
23: var string corner_color = "/p0"+$headerPlus3->substr(1,6)+"1"+$headerMinus5->substr(1,6)+"2"+$header->substr(1,6);
24:


Please help me!! Thank you!!!
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 15 comments