![]() |
updateratingdeviation(ratingd,time) not working?
When the player connects to the server, this happens:
player.ratingd = updateratingdeviation(player.ratingd,min(player.cl ientr.hd_spar_killedtime,player.clientr.hd_spar_ki llertime)); killertime = timevar2 the last time player was killed. killedtime = timevar2 the last time player killed someone. I've tried doing timevar2-min(killedtime,killertime) too. It just keeps making the player's deviation 350. Bug? Or am I in the wrong forum? |
The input ratingd was below 350 ? It should only switch back to 350 if the specified lastpspar parameter is long time ago.
On Zone the spar ratings are working fine so I don't think that the function is bugged itself, sounds more like the specified time is bad, eventually use the max of the two values, since the last spar is probably the last time you have killed someone or was killed yourself, one of those might even be zero. |
Quote:
You're right about using max vs. min though (whoops). Hmm... this is quite interesting, it seems that ratingd is just being set to 350 when the player comes online at all. I'm guessing that it's because the internal system is detecting the last spar being at a different time. It's a good thing I make sure I have any variable I might want to use (yea, I even have one made for this already). I was really hoping on not having to use it though :( |
? You could be a little bit more exact with your error descriptions.
|
Quote:
PHP Code:
|
Is there a serveroption for making the server not update the player's rating deviation?
|
| All times are GMT +2. The time now is 12:00 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.