421
Modification Help / Re: Score saver help
« on: August 08, 2012, 01:40:46 PM »
First, you should probably check %killer's score on death that way they're kicked for freekilling, not freekilling then dying.
As for your actual problem,
You should also use %client.setScore($ss::client[%id]); in the gameConnection::loadScore function.
As for your actual problem,
Code: [Select]
function GameConnection::onClientLeaveGame(%client)
{
Parent::onClientLeaveGame(%client);
%client.savScore(%client);
}
You're basically saying "Leave the game, then save their score." which, if you think about it, doesn't make any sense. The client will be gone by the time it saves their score. Switch the order of the two calls inside there and it should work.You should also use %client.setScore($ss::client[%id]); in the gameConnection::loadScore function.


