View Single Post
pan0s
Senior Member
Join Date: Nov 2017
Old 10-08-2022 , 06:43   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #49

Quote:
Originally Posted by Groven View Post
Any updates so it wont reset?

Edit: It's broken with ABM and sometimes don't spawn people etc.

Code:
A Survivor Bot Can't Be Spawned Right Now
Do you have any plugin that reset player's data?

Just like eyal282 mentioned,

The solution is that you need to create a buffer attribute
Code:
Player g_playersBuffer[MAXPLAYERS + 1];
when you see g_players[?] += ?? (or any other changes) , you need to also add g_playersBuffer[?] += ?? (or any other changes)
and the SQL statement will need to use column = column + value instead of column = value, as well as replacing g_players to g_playersBuffer. After saving it into db, g_playersBuffer[?] need to be reset.

The another problem, you can try turnning off the SpawnCI function, just comment all the codes in that block.
__________________

Last edited by pan0s; 10-08-2022 at 06:49.
pan0s is offline