05.11.2015, 12:20
(
Последний раз редактировалось Macluawn; 05.11.2015 в 17:22.
)
To get the score needed from the table, there`s a simple sum formula,
So, for example, for level 10 it would go like
S(10) = 10*(1+10)/2, producing 55. Just multiply it with 10 and voila.
http://ideone.com/SBTQeW
So, for example, for level 10 it would go like
S(10) = 10*(1+10)/2, producing 55. Just multiply it with 10 and voila.
pawn Код:
levelPoints(int level)
{
return 10*level*(level+1)/2;
}