[ajuda] salvar
#4

Quote:
Originally Posted by Cristhian
Посмотреть сообщение
pawn Код:
new string3[256];
            new pname3[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname3, sizeof(pname3));
            format(string3, sizeof(string3), "Players/%s.ini", pname3);
            new File: pFile = fopen(string3, io_write);
            if (pFile)
            {
                new pIp[128];
                GetPlayerIp(playerid, pIp, sizeof(pIp));
                new var[32];
                format(var, 32, "Password=%s\n", PlayerInfo[playerid][pPassword]);fwrite(pFile, var);
                fclose(pFile);
                new File: hFile = fopen(string3, io_append);
                PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
                format(var, 32, "IP=%s\n", pIp);fwrite(hFile, var);
                format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
                format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
                format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
                format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
                format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
                format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
                format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pBank]);fwrite(hFile, var);
                format(var, 32, "Skin=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
                format(var, 32, "TimesConnected=%d\n",PlayerInfo[playerid][pTimes]);fwrite(hFile, var);
                format(var, 32, "PlayingHours=%d\n",PlayerInfo[playerid][pHours]);fwrite(hFile, var);
                format(var, 32, "PlayingMinutes=%d\n",PlayerInfo[playerid][pMins]);fwrite(hFile, var);
                format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
                format(var, 32, "DayRegistered=%d\n",PlayerInfo[playerid][pDate1]);fwrite(hFile, var);
                format(var, 32, "MonthRegistered=%d\n",PlayerInfo[playerid][pDate2]);fwrite(hFile, var);
                format(var, 32, "YearRegistered=%d\n",PlayerInfo[playerid][pDate3]);fwrite(hFile, var);
                fclose(hFile);
OBS: jб tentei em dini..
tentou usar igual ao password que estб logo acima? por em pfile
Reply


Messages In This Thread
[ajuda] salvar - by Cristhian - 11.10.2011, 01:03
Re: [ajuda] salvar - by ceesar90 - 11.10.2011, 01:03
Re: [ajuda] salvar - by Cristhian - 11.10.2011, 01:05
Re: [ajuda] salvar - by ceesar90 - 11.10.2011, 01:18
Re: [ajuda] salvar - by Cristhian - 11.10.2011, 02:13
Re: [ajuda] salvar - by Vai_Besta - 11.10.2011, 02:16
Re: [ajuda] salvar - by Ricop522 - 11.10.2011, 02:16
Re: [ajuda] salvar - by [BWL]DuST - 11.10.2011, 02:27

Forum Jump:


Users browsing this thread: 3 Guest(s)