15.08.2011, 05:54
I think this may work, what you want is a variable that gets saved to their file with their total seconds. When they login you have another variable in your array/enum that you use to hold the playerdata and you do
then when they log out you do
and that will add the seconds they just played to their total seconds. Then when you want to display this information you can manipulate it however you want.
pawn Код:
variable = gettime();
pawn Код:
variableToBeSaved += (gettime() - variable);