I'm working on online saving for Buildism
#2
(06-21-2012, 02:39 PM)Dignity Wrote: (Mods - I wasn't sure where to post this, so I posted it here)

I haven't released this yet, because it doesn't work.
I just need to add it the the "functions list." Except, I can't find the functions list. Sad

Syntax
Code:
str=httpGet("http://something.com")

About
httpGet() is a global function, you can use it from anywhere in your scripts.
It takes one argument: url
Its the URL to a website, such as http://buildism.net/
Remember the http:// at the beginning or Java will cause an error!
httpGet() is also not a member of any object in the game.
On success, it returns a string with the contents of the url.
On failure, Java errors.
DO NOT USE LARGE WEBSITES SUCH AS BUILDISM OR ROBLOX.

(Jacob_ where's the Kahlua environment table?!?!)

I wouldn't suggest adding another global function, just go to the "Root" object and copy one of the existing addFunction() lines. Then it would be game:httpGet().
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)