Thread: GS2 Emulator
View Single Post
  #5  
Old 02-27-2012, 07:36 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
Anything array-based really doesn't work at all unless you know how arrays work in JS.

The temp is case-sensitive, and it's length not size() in JS. What does work is:

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

The only GS2 function that is currently implemented is echo().

Keep in mind this emulator is still very much a work-in-progress.
__________________
Quote:
Reply With Quote