Line 7: |
Line 7: |
| == Syntax == | | == Syntax == |
| | | |
− | var.'''store(varname, data)''' | + | var.'''store'''(varname, data) |
| | | |
| {| class="wikitable" | | {| class="wikitable" |
Line 20: |
Line 20: |
| | | |
| == Example == | | == Example == |
− | | + | --[[User:Adriweb|Adriweb]] ([[User talk:Adriweb|talk]]) 11:33, 14 April 2016 (CEST) |
| <source lang="lua"> | | <source lang="lua"> |
− | function on.create() | + | function on.construction() |
− | var.store("sol",1400000) | + | var.store("sol", 1400000) |
| end | | end |
| | | |
Line 32: |
Line 32: |
| </source> | | </source> |
| | | |
− | This code store some data into the "sol" variable, retrieves the content of the variable sol (string), and prints it on the screen. | + | This code store some data into the "sol" variable, retrieves the content of the variable sol (string), and prints it on the screen. |
| | | |
| == See also == | | == See also == |