User:Ela Talaj

From Second Life Wiki
Revision as of 13:04, 13 December 2010 by Ela Talaj (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

[[File:integer page;

CalculatePages() {

  if(items_num > 11)
    {
    pages_number = items_num / 9;
    last_page_items = items_num % 9;
    if(last_page_items) ++pages_number;
    else last_page_items = 9;
    }
  else
    {
    pages_number = 1;
    last_page_items = items_num;
    }        
  page = 1;                                                 // current page = first one

}]]