[Ayuda] Gm no guarda los datos al registrarse
#1

Hola, estaba cambiando el sistema de cuentas de mi server basado en Ciudad Prohibida, luego de mucho trabajo y correcciones de errores, lo probй ahora y no lee las cuentas, use una cuenta que ya tenia todos los datos, pero me los dejo todo en 0, y me hizo registrarme de nuevo, cuando me registro de nuevo, salgo y vuelvo a entrar y tengo que volver a registrarme, no importa cuantas veces me registre, no me guarda las cuentas.

Aqui el codigo de OnPlayerLogin:
pawn Код:
public OnPlayerLogin(playerid, password[])
{
    new string2[128];
    new playername2[MAX_PLAYER_NAME];
    new playernamesplit[3][MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    split(playername2, playernamesplit, '_');
    format(string2, sizeof(string2), "users/%s.ini", playername2);
    new File: UserFile = fopen(string2, io_read);
    if ( UserFile )
{
        new PassData[128];
        new keytmp[128], valtmp[128];
        new string[128];
        fread( UserFile , PassData , sizeof( PassData ) );
        keytmp = ini_GetKey( PassData );
        if( strcmp( keytmp , "Key" , true ) == 0 )
        {
            valtmp = ini_GetValue( PassData );
            strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 24);
        }
        if(strcmp(PlayerInfo[playerid][pKey], password, true ) == 0 )
        {
                new key[ 128 ] , val[ 128 ];
                new Data[ 128 ];
                while ( fread( UserFile , Data , sizeof( Data ) ) )
                {
                    key = ini_GetKey( Data );
                    if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
                    if( strcmp( key , "AdminCRP" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminECRP] = strval( val ); }
                    if( strcmp( key , "Facciones" , true ) == 0 ) { val = ini_GetValue( Data ), PlayerInfo[playerid][pFacciones] = strval( val ); }
                    if( strcmp( key , "Helper" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
                    if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
                    if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
                    if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
                    if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
                    if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
                    if( strcmp( key , "Walk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWalk] = strval( val ); }
                    if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
                    if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
                    if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
                    if( strcmp( key , "Cheques" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCheques] = strval( val ); }
                    if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
                    if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
                    if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
                    if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
                    if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
                    if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
                    if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
                    if( strcmp( key , "Materiales" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
                    if( strcmp( key , "Drogas" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
                    if( strcmp( key , "Speed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpeed] = strval( val ); }
                    if( strcmp( key , "Extasis" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pEctasy] = strval( val ); }
                    if( strcmp( key , "Ritalin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRitalin] = strval( val ); }
                    if( strcmp( key , "Heroina" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeroina] = strval( val ); }
                    if( strcmp( key , "Marihuana" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarihuana] = strval( val ); }
                    if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
                    if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
                    if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
                    if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
                    if( strcmp( key , "Health" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
                    if( strcmp( key , "Armour" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmour] = floatstr( val ); }
                    if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
                    if( strcmp( key , "VirWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirWorld] = strval( val ); }
                    if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
                    if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
                    if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
                    if( strcmp( key , "Minutes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMinutes] = strval( val ); }
                    if( strcmp( key , "MTexto" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMTexto] = strval( val ); }
                    if( strcmp( key , "Ipod" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pIpod] = strval( val ); }
                    if( strcmp( key , "Car" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey] = strval( val ); }
                    if( strcmp( key , "Car2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey2] = strval( val ); }
                    if( strcmp( key , "TimeCar" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTimeCar] = strval( val ); }
                    if( strcmp( key , "TimeCar2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTimeCar2] = strval( val ); }
                    if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
                    if( strcmp( key , "Negocio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbizzkey] = strval( val ); }
                    if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
                    if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
                    if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
                    if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
                    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
                    if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
                    if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
                    if( strcmp( key , "Gafas" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGafas] = strval( val ); }
                    if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
                    if( strcmp( key , "Antecedente1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pAntecedente1], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Antecedente2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pAntecedente2], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Antecedente3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pAntecedente2], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote1], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote2], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote3], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote4], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote5], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "SMS1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pSMS_1], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "SMS2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pSMS_2], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "SMS3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pSMS_3], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "SMS4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pSMS_4], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "SMS5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pSMS_5], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLighter] = strval( val ); }
                    if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
                    if( strcmp( key , "Mascara" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMask] = strval( val ); }

                    if( strcmp( key , "Locked" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocked] = strval( val ); }
                    if( strcmp( key , "Advertencias" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdvertencias] = strval( val ); }
                    if( strcmp( key , "AdminAdver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminAdver] = strval( val ); }
                    if( strcmp( key , "DNI" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDNI] = strval( val ); }
                    if( strcmp( key , "MSN" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMSN], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Estado", true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pEstado], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Weapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon] = strval( val ); }
                    if( strcmp( key , "Ammo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo] = strval( val ); }
                    if( strcmp( key , "Weapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon2] = strval( val ); }
                    if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
                    if( strcmp( key , "Weapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon3] = strval( val ); }
                    if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
                    if( strcmp( key , "Weapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon4] = strval( val ); }
                    if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
                    if( strcmp( key , "Weapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon5] = strval( val ); }
                    if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo5] = strval( val ); }
                    if( strcmp( key , "Weapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon6] = strval( val ); }
                    if( strcmp( key , "Ammo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo6] = strval( val ); }
                    if( strcmp( key , "Weapon7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon7] = strval( val ); }
                    if( strcmp( key , "Ammo7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo7] = strval( val ); }
                    if( strcmp( key , "Weapon8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon8] = strval( val ); }
                    if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo8] = strval( val ); }
                    if( strcmp( key , "Weapon9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon9] = strval( val ); }
                    if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo9] = strval( val ); }
                    if( strcmp( key , "Weapon10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon10] = strval( val ); }
                    if( strcmp( key , "Ammo10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo10] = strval( val ); }
                    if( strcmp( key , "Weapon11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon11] = strval( val ); }
                    if( strcmp( key , "Ammo11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo11] = strval( val ); }
                    if( strcmp( key , "Weapon12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon12] = strval( val ); }
                    if( strcmp( key , "Ammo12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo12] = strval( val ); }
                    if( strcmp( key , "Mochila" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMochila] = strval( val ); }
                    if( strcmp( key , "Casco" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCasco] = strval( val ); }
                    if( strcmp( key , "SIDA" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSIDA] = strval( val ); }
                    if( strcmp( key , "Cancer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCancer] = strval( val ); }
                    if( strcmp( key , "Epilepsia" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pEpilepsia] = strval( val ); }
                    if( strcmp( key , "DEagle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDEagle] = strval( val ); }
                    if( strcmp( key , "Shotgun" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShotgun] = strval( val ); }
                    if( strcmp( key , "MP5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMP5] = strval( val ); }
                    if( strcmp( key , "AK47" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAK47] = strval( val ); }
                    if( strcmp( key , "M4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pM4] = strval( val ); }
                    if( strcmp( key , "Sniper" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSniper] = strval( val ); }
                    if( strcmp( key , "FStyle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFStyle] = strval( val ); }
                    if( strcmp( key , "Leccion" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeccion] = strval( val ); }
                    if( strcmp( key , "Busqueda" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBusqueda] = strval( val ); }
                    if( strcmp( key , "AntiSIDA" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAntiSIDA] = strval( val ); }
                    if( strcmp( key , "AntiCancer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAntiCancer] = strval( val ); }
                    if( strcmp( key , "AntiEpilepsia" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAntiEpilepsia] = strval( val ); }
                    if( strcmp( key , "Rent" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRent] = strval( val ); }
                    if( strcmp( key , "Rob" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRob] = strval( val ); }
                    if( strcmp( key , "Donate" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateT] = strval( val ); }
                    if( strcmp( key , "CarPremium" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarPremium] = strval( val ); }
                    if( strcmp( key , "BanDuda" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBanDuda] = strval( val ); }
                    if( strcmp( key , "Seguro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSeguro] = strval( val ); }
                    if( strcmp( key , "Walkie" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWalkie] = strval( val ); }
                    if( strcmp( key , "Head" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHead] = strval( val ); }
                    if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
                    if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Entered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pEntered] = strval( val ); }
                    if( strcmp( key , "Peces" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPeces] = strval( val ); }
                    if( strcmp( key , "Implementos" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImplementos] = strval( val ); }
                    if( strcmp( key , "Carnada", true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarnada] = strval( val ); }
                    if( strcmp( key , "Fichas" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFichas] = strval( val ); }
                    if( strcmp( key , "DNIFalse" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDNIFalse] = strval( val ); }
                    if( strcmp( key , "DNIName" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pDNIName], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Suciedad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuciedad] = strval( val ); }
                    if( strcmp( key , "AnilloCom" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAnilloCom] = strval( val ); }
                    if( strcmp( key , "AnilloOro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAnilloOro] = strval( val ); }
                    if( strcmp( key , "Collar" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCollar] = strval( val ); }
                    if( strcmp( key , "AnilloDia" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAnilloDia] = strval( val ); }
                    if( strcmp( key , "Pulsera" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPulsera] = strval( val ); }
                    if( strcmp( key , "Aretes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAretes] = strval( val ); }
                    if( strcmp( key , "Reloj" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReloj] = strval( val ); }
                    for(new v = 0; v < MAX_PLAYERTOYS; v++)
                            {
                    format(string, 128, "pt%dModelID",v);
                    if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerToyInfo[playerid][v][ptModelID] = strval( val ); }
                    format(string, 128, "pt%dBone",v);
                    if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerToyInfo[playerid][v][ptBone] = strval( val ); }
                    format(string, 128, "pt%dPosX",v);
                    if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerToyInfo[playerid][v][ptPosX] = floatstr( val ); }
                    format(string, 128, "pt%dPosY",v);
                    if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerToyInfo[playerid][v][ptPosY] = floatstr( val ); }
                    format(string, 128, "pt%dPosZ",v);
                    if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerToyInfo[playerid][v][ptPosZ] = floatstr( val ); }
                    format(string, 128, "pt%dRotX",v);
                    if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerToyInfo[playerid][v][ptRotX] = floatstr( val ); }
                    format(string, 128, "pt%dRotY",v);
                    if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerToyInfo[playerid][v][ptRotY] = floatstr( val ); }
                    format(string, 128, "pt%dRotZ",v);
                    if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerToyInfo[playerid][v][ptRotZ] = floatstr( val ); }
                            }
                     }//end while
                fclose(UserFile);//close the file after everything has been read in the while
        }
        else
        {
            ShowLoginDialog(playerid,DLOGIN);
            SendClientMessage(playerid, COLOR_WHITE, "Contraseсa erronea");
            fclose(UserFile);
            gPlayerLogTries[playerid] += 1;
            if(gPlayerLogTries[playerid] == 2) { Kick(playerid); }
            return 1;
        }
    if(PlayerInfo[playerid][pLocked] == 8)
    {
        Message(playerid, COLOR_YELLOW2, "Atenciуn: Tu cuenta figura como bloqueada.");
        Message(playerid, COLOR_YELLOW2, "(Baneado)");
        Message(playerid, COLOR_YELLOW2, "Acude al foro para reclamar tu desbaneo.");
        Ban(playerid);
    }
    ResetPlayerMoney(playerid), GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
    if(PlayerInfo[playerid][pReg] == 0)
    {
        PlayerInfo[playerid][pLevel] = 1;
        PlayerInfo[playerid][pHealth] = 100.0;
        PlayerInfo[playerid][pPos_x] = 1612.3240;
        PlayerInfo[playerid][pPos_y] = -2330.1670;
        PlayerInfo[playerid][pPos_z] = 13.5469;
        PlayerInfo[playerid][pInt] = 0;
        PlayerInfo[playerid][pTeam] = 3;
        PlayerInfo[playerid][pModel] = 135;
        PlayerInfo[playerid][pPhousekey] = 9999;
        PlayerInfo[playerid][pPbizzkey] = 9999;
        PlayerInfo[playerid][pPcarkey] = 9999;
        PlayerInfo[playerid][pPcarkey2] = 9999;
        PlayerInfo[playerid][pCarPremium] = 9999;
        PlayerInfo[playerid][pAccount] = 0;
        PlayerInfo[playerid][pReg] = 1;
        GivePlayerMoney(playerid, 3000);
    }
    ClearChatbox(playerid, 10);
    format(string2, sizeof(string2), "* Bienvenido a {37879F}EuroCity, {98FB98}%s.", PlayerName(playerid));
    Message(playerid, COLOR_WHITE, string2);
    Message(playerid, COLOR_WHITE, "- Escribe {40E0D0}/info {FFFFFF}para estar alerta de los updates/novedades del servidor.");
    if(DobleOn == 1) Message(playerid, AMARILLO_ADMIN, "* Informacion: {FFFFFF}El sistema de doble experiencia esta activo, recuerda jugar para subir mas rapido de nivel.");
    if(PlayerInfo[playerid][pAdminECRP] > 0)
    {
        format(string2, sizeof(string2), "- {ADFF2F}Nivel Administrativo {FFFFFF}%d", PlayerInfo[playerid][pAdminECRP]);
        Message(playerid, -1, string2);
    }

    SetTimerEx("Spawned", 10000, false, "i", playerid);
    gPlayerLogged[playerid] = 1;
    SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
    SpawnPlayer(playerid);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Maskuse[i] == 1)
            {
                ShowPlayerNameTagForPlayer(playerid, i, 0);
            }
        }
    }
}
return 1;
}
Reply
#2

No puedo ver con mucho detalle desde el cel pero por lo que veo solo cargas datos y no los guardas.
Reply
#3

Quote:
Originally Posted by Goncho28
Посмотреть сообщение
No puedo ver con mucho detalle desde el cel pero por lo que veo solo cargas datos y no los guardas.
Creo que todo se guarda en el OnPlayerUpdateTime que es este:
Код:
public OnPlayerUpdateTime(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		if(gPlayerLogged[playerid])
		{
			new string3[64];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "users/%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
			if (hFile)
			{
				new var[32],string[328];
                format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
				format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
				format(var, 32, "AdminCRP=%d\n",PlayerInfo[playerid][pAdminECRP]);fwrite(hFile, var);
				format(var, 32, "Facciones=%d\n",PlayerInfo[playerid][pFacciones]);fwrite(hFile, var);
				format(var, 32, "Helper=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
				format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
				format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
				format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
				format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
				format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
                format(var, 32, "Walk=%d\n",PlayerInfo[playerid][pWalk]);fwrite(hFile, var);
				format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
				format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
				format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
				format(var, 32, "Cheques%d\n",PlayerInfo[playerid][pCheques]);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, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
				format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
				format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
				format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
				format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
				format(var, 32, "Materiales=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
				format(var, 32, "Drogas=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
				format(var, 32, "Speed=%d\n",PlayerInfo[playerid][pSpeed]);fwrite(hFile, var);
				format(var, 32, "Ectasy=%d\n",PlayerInfo[playerid][pEctasy]);fwrite(hFile, var);
				format(var, 32, "Ritalin=%d\n",PlayerInfo[playerid][pRitalin]);fwrite(hFile, var);
				format(var, 32, "Heroina=%d\n",PlayerInfo[playerid][pHeroina]);fwrite(hFile, var);
				format(var, 32, "Marihuana=%d\n",PlayerInfo[playerid][pMarihuana]);fwrite(hFile, var);
				format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
				format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
				format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
				format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
				GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
	            format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
	            GetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
                format(var, 32, "pArmour=%.1f\n",PlayerInfo[playerid][pArmour]);fwrite(hFile, var);
                PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
				format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
				PlayerInfo[playerid][pVirWorld] = GetPlayerVirtualWorld(playerid);
				format(var, 32, "VirWorld=%d\n",PlayerInfo[playerid][pVirWorld]);fwrite(hFile, var);
				format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
				format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
				format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
				format(var, 32, "Minutes=%d\n",PlayerInfo[playerid][pMinutes]);fwrite(hFile, var);
				format(var, 32, "MTexto=%d\n",PlayerInfo[playerid][pMTexto]);fwrite(hFile, var);
				format(var, 32, "Ipod=%d\n",PlayerInfo[playerid][pIpod]);fwrite(hFile, var);
				format(var, 32, "Car=%d\n",PlayerInfo[playerid][pPcarkey]);fwrite(hFile, var);
				format(var, 32, "Car2=%d\n",PlayerInfo[playerid][pPcarkey2]);fwrite(hFile, var);
				format(var, 32, "TimeCar=%d\n",PlayerInfo[playerid][pTimeCar]);fwrite(hFile, var);
				format(var, 32, "TimeCar2=%d\n",PlayerInfo[playerid][pTimeCar2]);fwrite(hFile, var);
				format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
				format(var, 32, "Negocio=%d\n",PlayerInfo[playerid][pPbizzkey]);fwrite(hFile, var);
    			new Float:x, Float:y, Float:z;
     			GetPlayerPos(playerid,x,y,z);
				PlayerInfo[playerid][pPos_x] = x;
				PlayerInfo[playerid][pPos_y] = y;
				PlayerInfo[playerid][pPos_z] = z;
				format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
				format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
				format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
				format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
                format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
				format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
				format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
				format(var, 32, "Gafas=%d\n",PlayerInfo[playerid][pGafas]);fwrite(hFile, var);
				format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
    			format(string, 64, "Antecedente1=%s\n",PlayerInfo[playerid][pAntecedente1]);fwrite(hFile, string);
				format(string, 64, "Antecedente2=%s\n",PlayerInfo[playerid][pAntecedente2]);fwrite(hFile, string);
				format(string, 64, "Antecedente3=%s\n",PlayerInfo[playerid][pAntecedente3]);fwrite(hFile, string);
    			format(string, 64, "Note1=%s\n",PlayerInfo[playerid][pNote1]);fwrite(hFile, string);
				format(string, 64, "Note2=%s\n",PlayerInfo[playerid][pNote2]);fwrite(hFile, string);
				format(string, 64, "Note3=%s\n",PlayerInfo[playerid][pNote3]);fwrite(hFile, string);
				format(string, 64, "Note4=%s\n",PlayerInfo[playerid][pNote4]);fwrite(hFile, string);
				format(string, 64, "Note5=%s\n",PlayerInfo[playerid][pNote5]);fwrite(hFile, string);
				format(string, 128, "SMS1=%s\n",PlayerInfo[playerid][pSMS_1]);fwrite(hFile, string);
				format(string, 128, "SMS2=%s\n",PlayerInfo[playerid][pSMS_2]);fwrite(hFile, string);
				format(string, 128, "SMS3=%s\n",PlayerInfo[playerid][pSMS_3]);fwrite(hFile, string);
				format(string, 128, "SMS4=%s\n",PlayerInfo[playerid][pSMS_4]);fwrite(hFile, string);
				format(string, 128, "SMS5=%s\n",PlayerInfo[playerid][pSMS_5]);fwrite(hFile, string);
				format(var, 32, "Lighter=%d\n",PlayerInfo[playerid][pLighter]);fwrite(hFile, var);
				format(var, 32, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
				format(var, 32, "Mascara=%d\n",PlayerInfo[playerid][pMask]);fwrite(hFile, var);
				format(var, 32, "Locked=%d\n",PlayerInfo[playerid][pLocked]);fwrite(hFile, var);
				format(var, 32, "Advertencias=%d\n",PlayerInfo[playerid][pAdvertencias]);fwrite(hFile, var);
				format(var, 32, "AdminAdver=%d\n",PlayerInfo[playerid][pAdminAdver]);fwrite(hFile, var);
				format(string, 32, "DNI=%d\n",PlayerInfo[playerid][pDNI]);fwrite(hFile, var);
				format(string, 32, "MSN=%s\n",PlayerInfo[playerid][pMSN]);fwrite(hFile, var);
				format(string, 32, "Estado=%s\n",PlayerInfo[playerid][pEstado]);fwrite(hFile, string);
				format(var, 64, "Weapon=%d\n",PlayerInfo[playerid][pWeapon]);fwrite(hFile, var);
				format(var, 64, "Ammo=%d\n",PlayerInfo[playerid][pAmmo]);fwrite(hFile, var);
				format(var, 64, "Weapon2=%d\n",PlayerInfo[playerid][pWeapon2]);fwrite(hFile, var);
				format(var, 64, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
				format(var, 64, "Weapon3=%d\n",PlayerInfo[playerid][pWeapon3]);fwrite(hFile, var);
				format(var, 64, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
				format(var, 64, "Weapon4=%d\n",PlayerInfo[playerid][pWeapon4]);fwrite(hFile, var);
				format(var, 64, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
				format(var, 64, "Weapon5=%d\n",PlayerInfo[playerid][pWeapon5]);fwrite(hFile, var);
				format(var, 64, "Ammo5=%d\n",PlayerInfo[playerid][pAmmo5]);fwrite(hFile, var);
				format(var, 64, "Weapon6=%d\n",PlayerInfo[playerid][pWeapon6]);fwrite(hFile, var);
				format(var, 64, "Ammo6=%d\n",PlayerInfo[playerid][pAmmo6]);fwrite(hFile, var);
				format(var, 64, "Weapon7=%d\n",PlayerInfo[playerid][pWeapon7]);fwrite(hFile, var);
				format(var, 64, "Ammo7=%d\n",PlayerInfo[playerid][pAmmo7]);fwrite(hFile, var);
				format(var, 64, "Weapon8=%d\n",PlayerInfo[playerid][pWeapon8]);fwrite(hFile, var);
				format(var, 64, "Ammo8=%d\n",PlayerInfo[playerid][pAmmo8]);fwrite(hFile, var);
				format(var, 64, "Weapon9=%d\n",PlayerInfo[playerid][pWeapon9]);fwrite(hFile, var);
				format(var, 64, "Ammo9=%d\n",PlayerInfo[playerid][pAmmo9]);fwrite(hFile, var);
				format(var, 64, "Weapon10=%d\n",PlayerInfo[playerid][pWeapon10]);fwrite(hFile, var);
				format(var, 64, "Ammo10=%d\n",PlayerInfo[playerid][pAmmo10]);fwrite(hFile, var);
				format(var, 64, "Weapon11=%d\n",PlayerInfo[playerid][pWeapon11]);fwrite(hFile, var);
				format(var, 64, "Ammo11=%d\n",PlayerInfo[playerid][pAmmo11]);fwrite(hFile, var);
				format(var, 64, "Weapon12=%d\n",PlayerInfo[playerid][pWeapon12]);fwrite(hFile, var);
				format(var, 64, "Ammo12=%d\n",PlayerInfo[playerid][pAmmo12]);fwrite(hFile, var);
				format(var, 32, "Maleta=%d\n",PlayerInfo[playerid][pMaleta]);fwrite(hFile, var);
				format(var, 32, "Mochila=%d\n",PlayerInfo[playerid][pMochila]);fwrite(hFile, var);
				format(var, 32, "Casco=%d\n",PlayerInfo[playerid][pCasco]);fwrite(hFile, var);
				format(var, 32, "SIDA=%d\n",PlayerInfo[playerid][pSIDA]);fwrite(hFile, var);
				format(var, 32, "Cancer=%d\n",PlayerInfo[playerid][pCancer]);fwrite(hFile, var);
				format(var, 32, "Epilepsia=%d\n",PlayerInfo[playerid][pEpilepsia]);fwrite(hFile, var);
				format(var, 32, "DEagle=%d\n",PlayerInfo[playerid][pDEagle]);fwrite(hFile, var);
				format(var, 32, "Shotgun=%d\n",PlayerInfo[playerid][pShotgun]);fwrite(hFile, var);
				format(var, 32, "MP5=%d\n",PlayerInfo[playerid][pMP5]);fwrite(hFile, var);
				format(var, 32, "AK47=%d\n",PlayerInfo[playerid][pAK47]);fwrite(hFile, var);
				format(var, 32, "M4=%d\n",PlayerInfo[playerid][pMP5]);fwrite(hFile, var);
				format(var, 32, "Sniper=%d\n",PlayerInfo[playerid][pSniper]);fwrite(hFile, var);
				format(var, 32, "FStyle=%d\n",PlayerInfo[playerid][pFStyle]);fwrite(hFile, var);
				format(var, 32, "Leccion=%d\n",PlayerInfo[playerid][pLeccion]);fwrite(hFile, var);
				format(var, 32, "Busqueda=%d\n",PlayerInfo[playerid][pBusqueda]);fwrite(hFile, var);
				format(var, 32, "AntiSIDA=%d\n",PlayerInfo[playerid][pAntiSIDA]);fwrite(hFile, var);
				format(var, 32, "AntiCancer=%d\n",PlayerInfo[playerid][pAntiCancer]);fwrite(hFile, var);
				format(var, 32, "AntiEpilepsia=%d\n",PlayerInfo[playerid][pAntiEpilepsia]);fwrite(hFile, var);
				format(var, 32, "Rent=%d\n",PlayerInfo[playerid][pRent]);fwrite(hFile, var);
				format(var, 32, "Rob=%d\n",PlayerInfo[playerid][pRob]);fwrite(hFile, var);
				format(var, 32, "Donate=%d\n",PlayerInfo[playerid][pDonateT]);fwrite(hFile, var);
				format(var, 32, "CarPremium=%d\n",PlayerInfo[playerid][pCarPremium]);fwrite(hFile, var);
				format(var, 32, "BanDuda=%d ",PlayerInfo[playerid][pBanDuda]);fwrite(hFile, var);
				format(var, 32, "Seguro=%d\n",PlayerInfo[playerid][pSeguro]);fwrite(hFile, var);
				format(var, 32, "Walkie=%d\n",PlayerInfo[playerid][pWalkie]);fwrite(hFile, var);
				format(var, 32, "Head=%d\n",PlayerInfo[playerid][pHead]);fwrite(hFile, var);
                format(var, 32, "Married%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
				format(string, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
				format(var, 32, "Entered=%d\n",PlayerInfo[playerid][pEntered]);fwrite(hFile, var);
				format(var, 32, "Peces=%d\n",PlayerInfo[playerid][pPeces]);fwrite(hFile, var);
				format(var, 32, "Implementos=%d\n",PlayerInfo[playerid][pImplementos]);fwrite(hFile, var);
				format(var, 32, "Carnada=%d\n",PlayerInfo[playerid][pCarnada]);fwrite(hFile, var);
				format(var, 32, "Fichas=%d\n",PlayerInfo[playerid][pFichas]);fwrite(hFile, var);
				format(var, 32, "DNIFalse=%d\n",PlayerInfo[playerid][pDNIFalse]);fwrite(hFile, var);
				format(string, 32, "DNIName=%s\n",PlayerInfo[playerid][pDNIName]);fwrite(hFile, var);
				format(var, 32, "Suciedad=%d\n",PlayerInfo[playerid][pSuciedad]);fwrite(hFile, var);
				format(var, 32, "AnilloCom=%d\n",PlayerInfo[playerid][pAnilloCom]);fwrite(hFile, var);
				format(var, 32, "AnilloOro=%d\n",PlayerInfo[playerid][pAnilloOro]);fwrite(hFile, var);
				format(var, 32, "Collar=%d\n",PlayerInfo[playerid][pCollar]);fwrite(hFile, var);
				format(var, 32, "AnilloDia=%d\n",PlayerInfo[playerid][pAnilloDia]);fwrite(hFile, var);
				format(var, 32, "Pulsera=%d\n",PlayerInfo[playerid][pPulsera]);fwrite(hFile, var);
				format(var, 32, "Aretes=%d\n",PlayerInfo[playerid][pAretes]);fwrite(hFile, var);
				format(var, 32, "Reloj=%d\n",PlayerInfo[playerid][pReloj]);fwrite(hFile, var);
    			for(new v = 0; v < MAX_PLAYERTOYS; v++)
	    		{
					format(var, 32, "pt%dModelID=%d\n", v, PlayerToyInfo[playerid][v][ptModelID]);fwrite(hFile, var);
					format(var, 32, "pt%dBone=%d\n", v, PlayerToyInfo[playerid][v][ptBone]);fwrite(hFile, var);
	        		format(var, 32, "pt%dPosX=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosX]);fwrite(hFile, var);
	    			format(var, 32, "pt%dPosY=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosY]);fwrite(hFile, var);
	    			format(var, 32, "pt%dPosZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosZ]);fwrite(hFile, var);
	    			format(var, 32, "pt%dRotX=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotX]);fwrite(hFile, var);
	    			format(var, 32, "pt%dRotY=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotY]);fwrite(hFile, var);
	    			format(var, 32, "pt%dRotZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotZ]);fwrite(hFile, var);
	    		}
				fclose(hFile);
			}
		}
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)