Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock Register(playerid, key[])
- {
- new Accounts[256];
- new Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Name, sizeof(Name));
- format(Accounts, sizeof(Accounts), "/Accounts/%s.txt", Name);
- dini_Create(Accounts);
- dini_Set(Accounts, "Slaptazodis", key);
- dini_IntSet(Accounts, "XP", PlayerInfo[playerid][XP]);
- dini_IntSet(Accounts, "Skinas", PlayerInfo[playerid][Skinas]);
- dini_IntSet(Accounts, "Pinigai", PlayerInfo[playerid][Pinigai]);
- dini_IntSet(Accounts, "Administratorius", PlayerInfo[playerid][Administratorius]);
- dini_IntSet(Accounts, "AdminLevel", PlayerInfo[playerid][AdminLevel]);
- dini_IntSet(Accounts, "Gyvybe", PlayerInfo[playerid][Health]);
- dini_IntSet(Accounts, "Sarvai", PlayerInfo[playerid][Armour]);
- dini_IntSet(Accounts, "PozicijaX", PlayerInfo[playerid][pX]);
- dini_IntSet(Accounts, "PozicijaY", PlayerInfo[playerid][pY]);
- dini_IntSet(Accounts, "PozicijaZ", PlayerInfo[playerid][pZ]);
- dini_IntSet(Accounts, "Ginklai", PlayerInfo[playerid][Ginklai]);
- dini_IntSet(Accounts, "VIP", PlayerInfo[playerid][VIP]);
- dini_IntSet(Accounts, "VIPLevel", PlayerInfo[playerid][VIPLevel]);
- }
- //I changed MAX_PLAYERS to playerid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement