View Single Post
  #6  
Old 07-26-2010, 11:27 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
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.
Reply With Quote