28.05.2009, 19:06
Okay, i'am trying to save tyhe player's team, but it's not working at the player dudb file, it doesn't even create the thing called "Team", but the other things like money and skin it works :/
See how i am doing:
See how i am doing:
Код:
//OnPlayerDisconnect public OnPlayerDisconnect(playerid) { if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); dUserSetINT(PlayerName(playerid)).("Skin",GetPlayerSkin(playerid)); dUserSetINT(PlayerName(playerid)).("Team",gTeam[playerid]); } PLAYERLIST_authed[playerid] = false; return true; } //OnPlayerSpawn public OnPlayerSpawn(playerid) { if (PLAYERLIST_authed[playerid]) { SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("Skin")); gTeam[playerid] = dUserINT(PlayerName(playerid)).("Team"); } return 1; }