|
Post by ekvirtanen on Nov 7, 2009 15:45:51 GMT -5
cls
shipN = 0 ' Name of the ship shipX = 1 ' X coord shipY = 2 ' Y coord shipZ = 3 ' Z coord shipS = 4 ' Max. speed shipA = 5 ' Max. acceleration shipR = 6 ' Max. retardation
dim ships$(2, 6)
ships$(0, shipN) = "Ship 1" ships$(0, shipX) = "100" ships$(0, shipY) = "100" ships$(0, shipZ) = "100" ships$(0, shipS) = "0.9" ships$(0, shipA) = "0.1" ships$(0, shipR) = "0.1" ships$(1, shipN) = "Ship 2" ships$(1, shipX) = "50" ships$(1, shipY) = "150" ships$(1, shipZ) = "75" ships$(1, shipS) = "0.6" ships$(1, shipA) = "0.2" ships$(1, shipR) = "0.15"
Comments from; ' Name of the ship to ' Max. retardation causes a "Compile Error". If i remove them, all works as should. I have double checked that comment character is correct one. Is this because of some char-table differences at linux and windows or what? I tried in "Write your own" feature at the main site and it has same problem. Using rb101 for linux and i desperately need comments on my messy codes
|
|
|
Post by ekvirtanen on Nov 7, 2009 15:49:39 GMT -5
I tried the tinyBasic example from the wiki. Works fine with "Write your own" feature at mainsite, however my local rb101 for linux messes about the same error than with the code in first post. [edit] Also this causes same error shipN = 0 rem Name of the ship
|
|
|
Post by ekvirtanen on Nov 7, 2009 15:58:20 GMT -5
Ok. I restarted rb and browser, now shipN = 0 ' rem name of ship works just fine. Cant tell why and what tho...
|
|