View Single Post
  #8  
Old 07-27-2010, 12:19 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Quote:
Originally Posted by DrakilorP2P View Post
One-liner and without extra variables:

PHP Code:
serverr.day this.dayarray[(this.dayarray.index(serverr.day) + 1) % this.dayarray.size()]; 
Assumes that serverr.day is a valid value.
Quote:
Originally Posted by Crow View Post
PHP Code:
this.= { 1234};
this.aElement 0;
this.output this.a[this.aElement];

function 
NextElement() {
  
this.aElement = (this.aElement 1) % this.a.size();
  
this.output this.a[this.aElement];

With the code I posted, I'm not following how to incorporate this into it. Im not asking for an exact example with what I have. If that happens though, please explain.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote