Stat

Started by Coolkid, Jan 25, 2016, 02:02 AM

Previous topic - Next topic

Coolkid

HI now my databse is loaded and my register login function is also working but when i reconnect my all stats money and kills are back to 0 plzz help me and thanks in advance

Mashreq

Some functions are expected from you, without it we cannot help you.

Decent_946

if you are using fuzzie'ss account system. then there is a function like function Update( player, sqliteDB ). this is to save players stats. you need to put this function onplayerpart if you notice, in fuzzie's account system it is already added
function onPlayerPart( player, reason ){
if( pstats[ player.ID ].Level != 0 ){
pstats[ player.ID ].Update( player, sqliteDB );
}
pstats[ player.ID ] = null;
}

otherwise make your own save-stats function.