Thread: GS2 Emulator
View Single Post
  #7  
Old 02-27-2012, 08:02 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Cleaned up the source code a little bit, added size since it was right there.

gs2_setup() - Implements some GS2-like functionality.
gs2_script() - Does some small conversions.
gs2_emulate() - Calls setup, clears output, gets script, and evals it as JS.

So if you want to add to it go for it.

This also works now but I would suggest not trying to script on your phone.

PHP Code:
function onCreated() {
  
temp.=0;
  
temp.= ["Paul""frank""Sam"];
  for (
temp.I=0temp.temp.t.size(); temp.I++){
    echo(
temp.t[temp.I]);
  }

__________________
Quote:
Reply With Quote