|
Please post a small example. |
|
|
The only other function that works from collectgarbage is gcinfo(). Returning the amount of memory in use in KBs. |
|
|
No I have seen it used in a few programs. |
|
GanondudeJoin Date: 2007-06-22 Post Count: 1175 |
So far as I know Roblox does not allow us to modify the garbage collector in any way, and as such most garbage collection functions are locked. The only garbage collection function that I know can be used is collectgarbage("count"), which is the same as gcinfo() mentioned above. |
|
|
Well I scripting what ya'll are talking about, but... It worked, and then all of a sudden it doesn't. Maybe ROBLOX took away collectgarbage("collect") and collectgarbage("count"). |
|
ergo6Join Date: 2010-02-20 Post Count: 119 |
Roblox removed collectgarbage() |
|
|
wow, so many functions of Lua have been removed or locked. |
|
WK100Join Date: 2008-10-13 Post Count: 2835 |
Collectgarbage() has undergone a change just like _G. |
|
|
Hmm good thing I never really use Globals. |
|
WK100Join Date: 2008-10-13 Post Count: 2835 |
Script 1:
shared.Lol = function(p)
print(string.reverse(p))
end
Script 2:
shared.Lol(Ohaider)
> rediahO |
|
|
Why did you post tjhat? ;P |
|
WK100Join Date: 2008-10-13 Post Count: 2835 |
'Hmm good thing I never really use Globals'
Thats why =]
|
|
|
I know how too use them I just don't use them because if I ever need too I use some other methods that are more reliable. |
|
WK100Join Date: 2008-10-13 Post Count: 2835 |
That may be true. They're also useful for testing. Thats why I love them. Run the script from your command bar =D |
|
|
Ohh umm well.
You forgot too make the word a string (Quotes for strings)
shared.Lol = function(p)
print(string.reverse(p))
end
Script 2:
shared.Lol("Ohaider") -- :) |
|
WK100Join Date: 2008-10-13 Post Count: 2835 |
Oops. Typoed. Thought I already did that. Thxs for fixing xD |
|
|
np and sorry for arguing with anyone on this forum I obviously fail. |
|
WK100Join Date: 2008-10-13 Post Count: 2835 |
It's fine. As long as I don't start becoming really mad or start to rage, everything is fine here. |
|