Changes

Jump to navigation Jump to search

var.store

89 bytes added, 10:33, 14 April 2016
m
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  ==

Navigation menu