07.10.2014, 03:24
PHP код:
new GetNumberOfPages[MAX_PLAYERS]; //try
GetNumberOfPages()
{
if((gTotalItems >= SELECTION_ITEMS && gTotalItems % SELECTION_ITEMS == 0) //main error
{
return (gTotalItems / SELECTION_ITEMS);
}
else return (gTotalItems / SELECTION_ITEMS) + 1;
}