jackiesue (jackiesue) wrote in component_help,
jackiesue
jackiesue
component_help

help with adding an update component

I'm trying to add an update component for a friend using both the tutorial done by xevinx and t3knomanser. I keep getting errors though, specifically, the one behind the cut. Any help would be greatly appreciated!



Compile error: line 27, column 1: Unexpected token found. Expecting: [TokenPunct] = {
Got: [TokenPunct] = $
S2::Node, S2/Node.pm, 139
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 26
S2::NodeIfStmt, S2/NodeIfStmt.pm, 35
S2::NodeStmt, S2/NodeStmt.pm, 38
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 42
S2::NodeIfStmt, S2/NodeIfStmt.pm, 35
S2::NodeStmt, S2/NodeStmt.pm, 38
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 42
S2::NodeFunction, S2/NodeFunction.pm, 104
S2::Layer, S2/Layer.pm, 58
S2::Compiler, S2/Compiler.pm, 27

Context

23: $mondays = ($year % 4 == 0) ? 29 : 28;
24: }
25:
26: if($hour > 24)
27: $hour = $hour - 24;
28: $day = $day +1;
29: if($day > $mondays) {
30: $day = $day - $mondays;
31: $month = $month +1;
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 3 comments