Getting total time
#6

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
pawn Код:
variable = gettime();
then when they log out you do
pawn Код:
variableToBeSaved += (gettime() - variable);
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.
Reply


Messages In This Thread
Getting total time - by emokidx - 11.08.2011, 12:24
Re: Getting total time - by XGh0stz - 11.08.2011, 13:02
Re: Getting total time - by emokidx - 12.08.2011, 10:36
Re: Getting total time - by emokidx - 13.08.2011, 10:14
Re: Getting total time - by emokidx - 15.08.2011, 05:38
Re: Getting total time - by dowster - 15.08.2011, 05:54

Forum Jump:


Users browsing this thread: 4 Guest(s)