How to save stats after restart? +Rep
#5

Quote:
Originally Posted by CheckItOut
Посмотреть сообщение
How to code it? and when I suicide in the game the the death in the score dont change...
Use this to loop through all the players:
PHP код:
//Under OnGameModeInit
for(new 0GetPlayerPoolSize(); <= ji++)
{
    
//Do your saving stuff here

If you don't know how to get your saving stuff post your OnPlayerDisconnect code and I will tell you.

About your death score, Maybe you forget to increase the death variable under OnPlayerDeath or you are increasing it only if the ID of the killerid is valid (which won't trigger if player suicide).
Reply


Messages In This Thread
How to save stats after restart? +Rep - by CheckItOut - 19.07.2017, 18:03
Re: How to save stats after restart? +Rep - by FailerZ - 19.07.2017, 18:08
Re: How to save stats after restart? +Rep - by CheckItOut - 19.07.2017, 18:23
Re: How to save stats after restart? +Rep - by mongi - 19.07.2017, 18:55
Re: How to save stats after restart? +Rep - by FailerZ - 19.07.2017, 19:21
Re: How to save stats after restart? +Rep - by CheckItOut - 19.07.2017, 20:24
Re: How to save stats after restart? +Rep - by CheckItOut - 19.07.2017, 20:28
Re: How to save stats after restart? +Rep - by FailerZ - 19.07.2017, 20:46
Re: How to save stats after restart? +Rep - by Daymen - 19.07.2017, 20:46
Re: How to save stats after restart? +Rep - by Beryllium - 20.07.2017, 04:12

Forum Jump:


Users browsing this thread: 2 Guest(s)