03.02.2010, 14:15
hello supposing your using dudb to save player data u can do this
im pretty sure as long as you base your player saving on dudb then this will work (it does for me anyway)
Код:
// ok so inside OnPlayerDisconnect do this if (PInfo[playerid][LoggedIn] == 1) { // Was loggedin, so save the data! dUserSetINT(PlayerName(playerid)).("Score",GetPlayerScore(playerid));// score save is here } // now inside your login command / auto login, do this SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("Score"));// this sets their score to the saved amount