More help with stat saving and reloading
#7

Quote:
Originally Posted by arathin
Посмотреть сообщение
Our /stats command shows a list of things like your money,vip,admin,score,etc and when you kill someone/die I want it to update your users file and /stats can get the updated one.
Hm basically create a function called SavePlayer(playerid); and in that function save the players stats as same as OnPlayerDisconnect (or however your saving it) Next in OnPlayerDeath, put SavePlayer(playerid); and then on the /stats command in the first line put SavePlayer(playerid);

That should fix your prob.
Reply


Messages In This Thread
More help with stat saving and reloading - by arathin - 12.03.2013, 22:22
Re: More help with stat saving and reloading - by Scrillex - 13.03.2013, 00:15
Re: More help with stat saving and reloading - by vladi866 - 13.03.2013, 01:19
Re: More help with stat saving and reloading - by arathin - 13.03.2013, 02:13
Re: More help with stat saving and reloading - by kamzaf - 13.03.2013, 02:48
Re: More help with stat saving and reloading - by arathin - 13.03.2013, 02:58
Re: More help with stat saving and reloading - by kamzaf - 13.03.2013, 03:02

Forum Jump:


Users browsing this thread: 1 Guest(s)