Author Topic: Help with code  (Read 5213 times)

0 Members and 1 Guest are viewing this topic.

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Help with code
« on: December 17, 2012, 08:07:56 pm »
Code: [Select]
Ma="\029\000\000\0000\000\000\000\000\000\000\000:\000\000\000\016\000\001\000\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\255\255\255\255\255\255\000\128\000\128\255\255\255\255\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\255\255\255\255\000\128\255\255\000\128f\242\255\255`\216`\216f\242\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128f\242`\216`\216\000\128\000\128f\242`\216`\216`\216`\216`\216\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128`\216`\216`\216`\216\000\128`\216`\216`\216`\216`\216`\216`\216\000\128f\242\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128@\188`\216`\216`\216`\216\000\128\198\152`\216`\216`\216`\216`\216\000\128\198\152`\216\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\255\255\255\255\255\255\000\128\198\152`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216f\242\000\128\000\128\000\128\255\255\255\255\255\255\255\255\000\128\255\255\255\255\255\255\000\128\198\152`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216\000\128\255\255\255\255\000\128\000\128\255\255\255\255\255\255\000\128\255\255\255\255\000\128\000\128`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216\000\128\255\255\255\255\255\255\000\128\255\255\255\255\255\255\000\128\255\255\000\128\000\128@\188`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216\000\128\255\255\255\255\000\128\255\255\255\255\255\255\000\128\000\128\000\128@\188`\216\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128`\216`\216\000\128\255\255\000\128\255\255\255\255\255\255\000\128\000\128@\188`\216\000\128.\247\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\255\255\000\128\255\255\255\255\255\255\000\128\000\128@\188\000\128.\247\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\000\128\255\255\255\255\255\255\000\128\000\128@\188\000\128\211\255\211\255\211\255\000\128\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128\000\128\211\255\211\255\000\128`\216\000\128\000\128\255\255\255\255\000\1281\1981\198\000\128.\247\211\255\211\255\211\255\000\128\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128\000\128\211\255\211\255\000\128`\216\000\1281\198\000\128\255\255\000\128\198\1521\198\000\128\211\255\211\255\211\255\211\255\000\128\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128\000\128\211\255\211\255\000\128`\216\000\1281\198\000\128\255\255\000\128\198\1521\198\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\1281\198\000\128\255\255\000\1281\1981\198\000\128.\247\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\1281\198\000\128\255\255\255\255\000\128\000\128@\188\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\000\128\255\255\255\255\255\255\255\255\000\128@\188\000\128.\247\211\255\211\255\211\255\211\255\211\255\198\152\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\255\255\255\255\255\255\255\255\255\255\000\128\000\128@\188\000\128.\247\211\255\211\255\211\255\211\255.\247\000\128\000\128\000\128\000\128\198\152\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128@\188\000\128\000\128.\247\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128\000\128`\216\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128@\188`\216\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128`\216`\216\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128@\188`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\1284\174\182\194\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\1284\174\198\152\182\194\000\128\182\194\182\194\198\152\182\194\182\194\182\194\198\152\182\194\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\182\194\182\194[\219\000\128\182\194\182\194\182\194\198\152\000\128\198\152\182\194\182\194[\219\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\182\194\182\194[\219\000\128\182\194\000\128\000\128\000\128\138\255\000\128\000\128\000\128\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\1284\174\182\194[\219\000\128\198\152[\219[\219\000\128\138\255\138\255\138\255\000\128[\219\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\182\194\182\194[\219\000\128\182\194[\219[\219\000\128\138\255\000\128\138\255\000\128[\219[\219\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\182\194\182\194[\219\000\128\182\194[\219[\219\198\152\000\128[\219\000\128\198\152[\219[\219\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\1284\174\182\194[\219\000\128\198\152\182\194[\219[\219[\219[\219[\219[\219[\219[\219[\219\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\182\194\182\194[\219\000\128\182\194\182\194\182\194[\219[\219[\219[\219[\219[\219[\219[\219\255\255\000\128\198\152\198\152\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\198\152\198\152\198\152\000\128\000\128\198\152\182\194\182\194[\219[\219[\219[\219[\219[\219[\219\255\255\000\1281\1981\198\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\211\255\211\255\211\255\211\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\198\152\198\152\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\211\255\211\255\198\152\000\128\000\128\000\178\000\128\198\152\000\178\000\178\000\178\000\178\000\178D\215\000\128\000\128.\247\211\255\211\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128.\247\211\255\198\152\211\255\000\128\198\152\000\178\000\128\198\152\000\178\000\178\000\178D\215\000\128\000\128\000\128\000\128\198\152\211\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128.\247\211\255\211\255\000\128\000\178\000\178\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\178\000\128.\247\211\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\198\152\000\178\000\178\000\128\255\255\255\255\255\255\000\128\000\128\000\178\000\178\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\211\255\211\255\000\128\255\255\255\255\255\255\255\255\255\255\000\128\211\255\211\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\198\152\198\152\000\128\255\255\255\255\255\255\255\255\255\255\000\128\198\152\198\152\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128`\216`\216\000\128\255\255\255\255\255\255\255\255\255\255\000\128`\216`\216\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128[\219[\219\255\255\000\128\255\255\255\255\255\255\255\255\000\128[\219[\219\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128[\219[\219[\219\255\255\000\128\255\255\255\255\255\255\000\128[\219[\219[\219\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\198\152[\219[\219[\219\255\255\000\128\255\255\255\255\000\128\198\152[\219[\219[\219\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255"
calc="\022\000\000\000.\000\000\000\000\000\000\000,\000\000\000\016\000\001\000\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\255\255\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\255\255\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128"
platform.apilevel = "1.0"
-----------------------
------ Constants ------
-----------------------

spr = 0 -- image movement increment
obj = 0
summon = 0
x=0
y=200
dx=0
dy=0
-----------------------
------   Events  ------
-----------------------
function on.mouseDown(dx, dy)
 obj=1
 summon=1
    platform.window:invalidate()
end

fuction on.arrowRight()
x=x+2
--if spr <= 2 then
--spr=spr+1
--end
platform.window:invalidate()
end
fuction on.arrowLeft()
x=x-2
--if spr <= 2 then
--spr=spr+1
--end
platform.window:invalidate()
end




function on.paint(gc)
    -- Paint background

if spr == 0 then
    gc:drawImage(img_ma, x, y)
    end
---- if spr=1 then
----    gc:drawImage(img_mb, x, y)
--    end
-- if spr=2 then
--    gc:drawImage(img_mc, x, y)
--    end
if summon == 1 then
if obj == 1 then
gc:drawImage(img_calc,objX,objY)
end
end
end




-----------------------
------ Functions ------
-----------------------

function init()

    objX = 50
    objY = 50
    ball = 4
    x = 0
    y = 200
    ww, wh = width, height
end




-----------------------
------   Init:   ------
-----------------------

-- images --

img_ma = image.new(Ma)
--img_mb = image.new(mb)
--img_mc = image.new(mc)
img_calc = image.new(calc)


init()
on line 25 I get an error (  function on.arrowRight()   )
Please help
This used to contain a signature.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Help with code
« Reply #1 on: December 17, 2012, 08:30:53 pm »
Well, you spelled "function" wrong :P

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Help with code
« Reply #2 on: December 17, 2012, 09:31:54 pm »
Wow, im stupid thanks for pointing that out!
This used to contain a signature.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: Help with code
« Reply #3 on: December 17, 2012, 10:12:14 pm »
Hehehe i hate errors like that. I typically read what i think i wrote, not whats actually there ... which is kind of strange when you think about it.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Help with code
« Reply #4 on: December 17, 2012, 10:36:42 pm »
Lol, yeah. Also like those signs always get me that say things like:


You this read wrong.

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Help with code
« Reply #5 on: December 18, 2012, 02:28:01 am »
Lol, yeah. Also like those signs always get me that say things like:


You this read wrong.
I read your sentence as "You read this wrong" :O

Some people need a high five in the face... with a chair.
~EC

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Help with code
« Reply #6 on: December 18, 2012, 09:53:44 pm »
D: I still have an error on line 25
= expected near on D: please help
This used to contain a signature.

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Help with code
« Reply #7 on: December 18, 2012, 10:44:56 pm »
When I correct the two instances of “fuction” it runs fine in the student software script editor
The right and left keys move Maxwell, and pressing the mouse down displays a calculator

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Help with code
« Reply #8 on: December 19, 2012, 11:54:31 am »
The "= expected near on" error is caused by having "fuction" instead of "function". When you fix all of these (like Rhombicuboctahedron said) the error goes away.
Rhombicuboctahedron your name is so easy to spell :D

Some people need a high five in the face... with a chair.
~EC

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Help with code
« Reply #9 on: December 19, 2012, 08:54:31 pm »
I thought you already know that function was misspelled :P
Or did you not notice the second one

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Help with code
« Reply #10 on: December 19, 2012, 10:50:59 pm »
Rhombicuboctahedron your name is so easy to spell :D
Aw, thanks :)
Or is that satirical? I find it to be spelled like it sounds, but whenever I mention that word to a friend, they always act like I just recited some theorem or eighty digits of pi

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Help with code
« Reply #11 on: December 20, 2012, 03:57:29 am »
When typing it for the first time I was like wtf?! But now that I've typed it once, it's actually very easy :)

Some people need a high five in the face... with a chair.
~EC