[ajuda] salvar
#7

wtf
Vocк colocou para fechar a file dps que salvar.. lol e tб errado a var..
pawn Код:
new string3[128], 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], var[64];
                GetPlayerIp(playerid, pIp, sizeof(pIp));
                PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
                format(var, 64, "Password=%s\n", PlayerInfo[playerid][pPassword]);fwrite(pFile, var);
                format(var, 64, "IP=%s\n", pIp);fwrite(pFile, var);
                format(var, 64, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(pFile, var);
                format(var, 64, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(pFile, var);
                format(var, 64, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(pFile, var);
                format(var, 64, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(pFile, var);
                format(var, 64, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(pFile, var);
                format(var, 64, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(pFile, var);
                format(var, 64, "Bank=%d\n",PlayerInfo[playerid][pBank]);fwrite(pFile, var);
                format(var, 64, "Skin=%d\n",PlayerInfo[playerid][pSkin]);fwrite(pFile, var);
                format(var, 64, "TimesConnected=%d\n",PlayerInfo[playerid][pTimes]);fwrite(pFile, var);
                format(var, 64, "PlayingHours=%d\n",PlayerInfo[playerid][pHours]);fwrite(pFile, var);
                format(var, 64, "PlayingMinutes=%d\n",PlayerInfo[playerid][pMins]);fwrite(pFile, var);
                format(var, 64, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(pFile, var);
                format(var, 64, "DayRegistered=%d\n",PlayerInfo[playerid][pDate1]);fwrite(pFile, var);
                format(var, 64, "MonthRegistered=%d\n",PlayerInfo[playerid][pDate2]);fwrite(pFile, var);
                format(var, 64, "YearRegistered=%d\n",PlayerInfo[playerid][pDate3]);fwrite(pFile, var);
                fclose(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: 1 Guest(s)