Time spend on game
#1

Hi guys iam trying to get player time spend on game but i can't i need it in /stats but its mysql and iam new at mysql
Reply
#2

Quote:
Originally Posted by Loinal
Посмотреть сообщение
Hi guys iam trying to get player time spend on game but i can't i need it in /stats but its mysql and iam new at mysql
Get the value of the total spent time when your player logins and save it in variable. Then use that variable to format the string in /stats. Btw which mysql version are you using?
Reply
#3

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Get the value of the total spent time when your player logins and save it in variable. Then use that variable to format the string in /stats. Btw which mysql version are you using?
How to get it?
Reply
#4

Quote:
Originally Posted by Loinal
Посмотреть сообщение
How to get it?
You can either use https://sampwiki.blast.hk/wiki/NetStats_GetConnectedTime or create a repeating timer with an interval of 1 minute then add 1 to player's playing minutes or something.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)