[Help]Please
#1

Hello Guys
i Want Making When Player Register Save Player How much play in server min + hours + day + week + month + years
any one know that
please example to know the date
thanks for all
Reply
#2

I did this a while back for a old game mode
i got the tickcount when they joined and disconected then
Subtracted the connect tickcount from the disconnect tickcount and saved that number
then timeconverted it to what a wanted to display
Reply
#3

You can show, save, and load this variables in the right callbacks.

Код:
new secondsconnectedtime = NetStats_GetConnectedTime(playerid)/1000;
new minutesconnectedtime = secondsconnectedtime/60;
new hoursconnectedtime = minutesconnectedtime/60;
new daysconnectedtime = minutesconnectedtime/24;
new monthsconnectedtime = minutesconnectedtime/30;
new years = minutesconnectedtime/12;
Reply
#4

Quote:
Originally Posted by rodrijose2009
Посмотреть сообщение
You can show, save, and load this variables in the right callbacks.

Код:
new secondsconnectedtime = NetStats_GetConnectedTime(playerid)/1000;
new minutesconnectedtime = secondsconnectedtime/60;
new hoursconnectedtime = minutesconnectedtime/60;
new daysconnectedtime = minutesconnectedtime/24;
new monthsconnectedtime = minutesconnectedtime/30;
new years = minutesconnectedtime/12;
with this? could set the day and month and year in which the player was registered? and that I've been creating those functions in another way for the user only put / stats will leave the info player and the day that which you registered, but envez out the day it was recorded out this day bone An example

and when I put /stats out today I say register

register me

Date of Registration: 07/10/2014

but you have to get out

Date of Registration: 10/09/2014

That could help me there? you understand me?
Reply
#5

not really sorry do you also want to save that date that they register?
Reply
#6

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
not really sorry do you also want to save that date that they register?
I mean that in aparesca /stats which actually date you registered! but what you want is that?
Reply
#7

can use getdate and save the year month day is that what you mean

have a look at this

http://www.compuphase.com/pawn/Time_Functions.pdf
Reply
#8

only
Day/Month/Years
i dont need much
Reply
#9

help please
Reply
#10

Good luck finding it doe.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)