[Problema] No Guarda la Cuenta. їQue sucede?
#1

Hola amigos, bueno necesito ayuda en algo.. No entiendo el Porque.. bueno, Estaba Agregando el Velocнmetro que habнa creado con el Include Velocimetro, y tal.. agrege todo normal y conecto y lo pruebo.. bueno, luego me desconecto y vuelvo a conectar.. y veo que regrese al ultimo lugar donde conecte, luego probe y probe y seguia lo mismo.. luego borre mi cuenta para volverla a crear.. la Volvi a crear, y apareci donde Coloque que Spawneara al pasar el Test, bueno, fui compre un vehiculo, reloguee.. y cuando entre.. me devolvio al ultimo lugar.. que es donde Spawnea cuando Registro, y no tenia tampoco el Auto.


їQue sucede? Ayudenme por favor, Revise varias cosas y no eran..
Reply
#2

їy sin cуdigos como quieres que te ayudemos?
Reply
#3

Pero que Codigos? si no Lanza ninguno Error ._. Todo anda Perfecto en mi GM.. Lo que no entiendo es el porque? Antes cargaba a la perfecciуn ahora no

Por Colocar esto:

PHP код:
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) != 0)
    {
        
SetPlayerArmedWeapon(playerid,0);
        return 
0;
    } 
Al principio del callback OnPlayerUpdate, (que es el que carga el archivo guardado) їInterfiere?
Reply
#4

Muestra como estas guardando los datos y donde los guardas.-
Reply
#5

Bueno yo creo el Archivo en Public OnPlayerRegister

PHP код:
public OnPlayerRegister(playeridpassword[])
{
    if(
IsPlayerConnected(playerid))
    {
            new 
string3[64];
            new 
playername3[MAX_PLAYER_NAME];
            
GetPlayerName(playeridplayername3sizeof(playername3));
            
format(string3sizeof(string3), "Usuarios/%s.ini"playername3);
            new 
FilehFile fopen(string3io_write);
            if (
hFile)
            {
                
strmid(PlayerInfo[playerid][pKey], password0strlen(password), 255);
                new var[
64];
                
format(var, 64"Key=%s\n"PlayerInfo[playerid][pKey]);fwrite(hFile, var);
                
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
                
format(var, 64"ApodoAdmin=%s\n"PlayerInfo[playerid][pApodo]);fwrite(hFile, var);
                
format(var, 64"Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
                
format(var, 64"AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
                
format(var, 64"DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
                
format(var, 64"UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
                
format(var, 64"ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
                
format(var, 64"Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
                
format(var, 64"Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
                
format(var, 64"Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
                
format(var, 64"Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
                
format(var, 64"CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
                
format(var, 64"Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
                
format(var, 64"Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
                
format(var, 64"Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
                
format(var, 64"Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
                
format(var, 64"Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
                
format(var, 64"Warns=%d\n",PlayerInfo[playerid][pWarn]);fwrite(hFile, var);
                
format(var, 64"Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
                
format(var, 64"Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
                
format(var, 64"Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
                
format(var, 64"WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
                
format(var, 64"Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
                
format(var, 64"LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
                
format(var, 64"Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
                
format(var, 64"BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
                
format(var, 64"Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
                
format(var, 64"Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
                
format(var, 64"HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
                
format(var, 64"Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
                
format(var, 64"ISkin=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
                
format(var, 64"Casco=%d\n",PlayerInfo[playerid][pCasco]);fwrite(hFile, var);
                
format(var, 64"TarjetaCredito=%d\n",PlayerInfo[playerid][pTarjetaCredito]);fwrite(hFile, var);
                
format(var, 64"JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
                
format(var, 64"Materials=%d\n",PlayerInfo[playerid][pMateriales]);fwrite(hFile, var);
                
format(var, 64"MonedasOro=%d\n",PlayerInfo[playerid][pMonedas]);fwrite(hFile, var);
                
format(var, 64"Ganzuas=%d\n",PlayerInfo[playerid][pGanzuas]);fwrite(hFile, var);
            
//    format(var, 64, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
                
format(var, 64"DrugsNopre=%d\n",PlayerInfo[playerid][pDrugsNopre]);fwrite(hFile, var);
                
format(var, 64"Cocaina=%d\n",PlayerInfo[playerid][pCocaina]);fwrite(hFile, var);
                
format(var, 64"Heroina=%d\n",PlayerInfo[playerid][pHeroina]);fwrite(hFile, var);
                
format(var, 64"Extasis=%d\n",PlayerInfo[playerid][pExtasis]);fwrite(hFile, var);
                
format(var, 64"Marihuana=%d\n",PlayerInfo[playerid][pMarihuana]);fwrite(hFile, var);
                
format(var, 64"Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
                
format(var, 64"Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
                
format(var, 64"FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
                
format(var, 64"Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
                
format(var, 64"Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
                
format(var, 64"ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
                
format(var, 64"SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
                
format(var, 64"BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
                
format(var, 64"LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
                
format(var, 64"MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
                
format(var, 64"JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
                
format(var, 64"CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
                
format(var, 64"NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
                
format(var, 64"DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
                
format(var, 64"CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
                
format(var, 64"FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
                
format(var, 64"pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
                
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
                
format(var, 64"pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
                
format(var, 64"Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
                
format(var, 64"Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
                
format(var, 64"Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
                
format(var, 64"Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
                
format(var, 64"PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
                
format(var, 64"House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
                
format(var, 64"Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
                
fclose(hFile);
            }
    }
    return 
1;

Despues El Public OnPlayerLogin

PHP код:
public OnPlayerLogin(playerid,password[])
{
    new 
tmp2[60];
    new 
string2[80];
    new 
playername2[MAX_PLAYER_NAME];
    new 
playernamesplit[3][MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayername2sizeof(playername2));
    
split(playername2playernamesplit'_');
    
format(string2sizeof(string2), "Usuarios/%s.ini"playername2);
    new 
FileUserFile fopen(string2io_read);
    if ( 
UserFile )
    {
        new 
PassData[256];
        new 
keytmp[256], valtmp[256];
        
freadUserFile PassData sizeofPassData ) );
        
keytmp ini_GetKeyPassData );
        if( 
strcmpkeytmp "Key" true ) == )
        {
            
valtmp ini_GetValuePassData );
            
strmid(PlayerInfo[playerid][pKey], valtmp0strlen(valtmp)-1255);
        }
        if(
strcmp(PlayerInfo[playerid][pKey],passwordtrue ) == )
        {
                new 
key256 ] , val256 ];
                new 
Data256 ];
                while ( 
freadUserFile Data sizeofData ) ) )
                {
                    
key ini_GetKeyData );
                    if( 
strcmpkey "ApodoAdmin" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pApodo] = strvalval ); }
                    if( 
strcmpkey "Level" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLevel] = strvalval ); }
                    if( 
strcmpkey "AdminLevel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAdmin] = strvalval ); }
                    if( 
strcmpkey "DonateRank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDonateRank] = strvalval ); }
                    if( 
strcmpkey "UpgradePoints" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][gPupgrade] = strvalval ); }
                    if( 
strcmpkey "ConnectedTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pConnectTime] = strvalval ); }
                    if( 
strcmpkey "Registered" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pReg] = strvalval ); }
                    if( 
strcmpkey "Sex" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSex] = strvalval ); }
                    if( 
strcmpkey "Age" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAge] = strvalval ); }
                    if( 
strcmpkey "Origin" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pOrigin] = strvalval ); }
                    if( 
strcmpkey "CK" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCK] = strvalval ); }
                    if( 
strcmpkey "Muted" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMuted] = strvalval ); }
                    if( 
strcmpkey "Respect" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pExp] = strvalval ); }
                    if( 
strcmpkey "Money" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCash] = strvalval ); }
                    if( 
strcmpkey "Bank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAccount] = strvalval ); }
                    if( 
strcmpkey "Crimes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCrimes] = strvalval ); }
                    if( 
strcmpkey "Warns" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWarn] = strvalval ); }
                    if( 
strcmpkey "Kills" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pKills] = strvalval ); }
                    if( 
strcmpkey "Deaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDeaths] = strvalval ); }
                    if( 
strcmpkey "Arrested" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pArrested] = strvalval ); }
                    if( 
strcmpkey "WantedDeaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWantedDeaths] = strvalval ); }
                    if( 
strcmpkey "Phonebook" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPhoneBook] = strvalval ); }
                    if( 
strcmpkey "LottoNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLottoNr] = strvalval ); }
                    if( 
strcmpkey "Fishes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishes] = strvalval ); }
                    if( 
strcmpkey "BiggestFish" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBiggestFish] = strvalval ); }
                    if( 
strcmpkey "Job" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJob] = strvalval ); }
                    if( 
strcmpkey "Paycheck" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayCheck] = strvalval ); }
                    if( 
strcmpkey "HeadValue" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHeadValue] = strvalval ); }
                    if( 
strcmpkey "Jailed" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailed] = strvalval ); }
                    if( 
strcmpkey "ISkin" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSkin] = strvalval ); }
                    if( 
strcmpkey "Casco" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCasco] = strvalval ); }
                    if( 
strcmpkey "Casco" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTarjetaCredito] = strvalval ); }
                    if( 
strcmpkey "JailTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailTime] = strvalval ); }
                    if( 
strcmpkey "Materials" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMateriales] = strvalval ); }
                    if( 
strcmpkey "MonedasOro" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMonedas] = strvalval ); }
                    if( 
strcmpkey "Ganzuas" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGanzuas] = strvalval ); }
                    
//if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
                    
if( strcmpkey "DrugsNopre" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugsNopre] = strvalval ); }
                    if( 
strcmpkey "Cocaina" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCocaina] = strvalval ); }
                    if( 
strcmpkey "Heroina" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHeroina] = strvalval ); }
                    if( 
strcmpkey "Extasis" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pExtasis] = strvalval ); }
                    if( 
strcmpkey "Marihuana" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMarihuana] = strvalval ); }
                    if( 
strcmpkey "Leader" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLeader] = strvalval ); }
                    if( 
strcmpkey "Member" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMember] = strvalval ); }
                    if( 
strcmpkey "FMember" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFMember] = strvalval ); }
                    if( 
strcmpkey "Rank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pRank] = strvalval ); }
                    if( 
strcmpkey "Char" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pChar] = strvalval ); }
                    if( 
strcmpkey "ContractTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pContractTime] = strvalval ); }
                    if( 
strcmpkey "SexSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSexSkill] = strvalval ); }
                    if( 
strcmpkey "BoxSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoxSkill] = strvalval ); }
                    if( 
strcmpkey "LawSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLawSkill] = strvalval ); }
                    if( 
strcmpkey "MechSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMechSkill] = strvalval ); }
                    if( 
strcmpkey "JackSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJackSkill] = strvalval ); }
                    if( 
strcmpkey "CarSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarSkill] = strvalval ); }
                    if( 
strcmpkey "NewsSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNewsSkill] = strvalval ); }
                    if( 
strcmpkey "DrugsSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugsSkill] = strvalval ); }
                    if( 
strcmpkey "CookSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCookSkill] = strvalval ); }
                    if( 
strcmpkey "FishSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishSkill] = strvalval ); }
                    if( 
strcmpkey "pSHealth" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSHealth] = floatstrval ); }
                    if( 
strcmpkey "pHealth" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHealth] = floatstrval ); }
                    if( 
strcmpkey "Int" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pInt] = strvalval ); }
                    if( 
strcmpkey "Local" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLocal] = strvalval ); }
                    if( 
strcmpkey "Team" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTeam] = strvalval ); }
                    if( 
strcmpkey "Model" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pModel] = strvalval ); }
                    if( 
strcmpkey "PhoneNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPnumber] = strvalval ); }
                    if( 
strcmpkey "House" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPhousekey] = strvalval ); }
                    if( 
strcmpkey "Bizz" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPbiskey] = strvalval ); }
                    if( 
strcmpkey "Pos_x" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_x] = floatstrval ); }
                    if( 
strcmpkey "Pos_y" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_y] = floatstrval ); }
                    if( 
strcmpkey "Pos_z" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_z] = floatstrval ); }
                    if( 
strcmpkey "TaxiLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTaxiLic] = strvalval ); }
                    if( 
strcmpkey "CarLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarLic] = strvalval ); }
                    if( 
strcmpkey "FlyLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFlyLic] = strvalval ); }
                    if( 
strcmpkey "BoatLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoatLic] = strvalval ); }
                    if( 
strcmpkey "FishLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishLic] = strvalval ); }
                    if( 
strcmpkey "GunLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGunLic] = strvalval ); }
                    if( 
strcmpkey "Gun1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun1] = strvalval ); }
                    if( 
strcmpkey "Gun2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun2] = strvalval ); }
                    if( 
strcmpkey "Gun3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun3] = strvalval ); }
                    if( 
strcmpkey "Gun4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun4] = strvalval ); }
                    if( 
strcmpkey "CarTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarTime] = strvalval ); }
                    if( 
strcmpkey "PayDay" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayDay] = strvalval ); }
                    if( 
strcmpkey "PayDayHad" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayDayHad] = strvalval ); }
                    if( 
strcmpkey "Watch" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWatch] = strvalval ); }
                    if( 
strcmpkey "Crashed" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCrashed] = strvalval ); }
                    if( 
strcmpkey "Wins" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWins] = strvalval ); }
                    if( 
strcmpkey "Loses" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLoses] = strvalval ); }
                    if( 
strcmpkey "AlcoholPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAlcoholPerk] = strvalval ); }
                    if( 
strcmpkey "DrugPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugPerk] = strvalval ); }
                    if( 
strcmpkey "MiserPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMiserPerk] = strvalval ); }
                    if( 
strcmpkey "PainPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPainPerk] = strvalval ); }
                    if( 
strcmpkey "TraderPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTraderPerk] = strvalval ); }
                    if( 
strcmpkey "Tutorial" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTut] = strvalval ); }
                    if( 
strcmpkey "Mission" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMissionNr] = strvalval ); }
                    if( 
strcmpkey "Warnings" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWarns] = strvalval ); }
                    if( 
strcmpkey "VirWorld" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pVirWorld] = strvalval ); }
                    if( 
strcmpkey "Fuel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFuel] = strvalval ); }
                    if( 
strcmpkey "Married" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMarried] = strvalval ); }
                    if( 
strcmpkey "MarriedTo" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pMarriedTo], val0strlen(val)-1255); }
                    if( 
strcmpkey "FishTool" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishTool] = strvalval ); }
                    if( 
strcmpkey "InvWeapon" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pInvWeapon] = strvalval ); }
                    if( 
strcmpkey "InvAmmo" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pInvAmmo] = strvalval ); }
                    if( 
strcmpkey "Lighter" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLighter] = strvalval ); }
                    if( 
strcmpkey "Cigarettes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCigarettes] = strvalval ); }
                    if( 
strcmpkey "Porros" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPorros] = strvalval ); }
                    if( 
strcmpkey "Cancer" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCancer] = strvalval ); }
                    if( 
strcmpkey "Carnet" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarnet] = strvalval ); }
                    if( 
strcmpkey "GPS" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGPS] = strvalval ); }
                    if( 
strcmpkey "MP3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMP3] = strvalval ); }
                    if( 
strcmpkey "Mochila" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMochila] = strvalval ); }
                    if( 
strcmpkey "Locked" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLocked] = strvalval ); }
                    if( 
strcmpkey "DNI" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDNI] = strvalval ); }
                    if( 
strcmpkey "Ticket" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTicket] = strvalval ); }
                    if( 
strcmpkey "NIF" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNIF] = strvalval ); }
                    if( 
strcmpkey "Sueldo" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSueldo] = strvalval ); }
                    if( 
strcmpkey "Work" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWork] = strvalval ); }
                    if( 
strcmpkey "Vidas" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pVidas] = strvalval ); }
                    if( 
strcmpkey "Exit" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pExit] = strvalval ); }
                    if( 
strcmpkey "Minerals" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMinerals] = strvalval ); }
                    if( 
strcmpkey "Golds" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGolds] = strvalval ); }
                    if( 
strcmpkey "FStyle" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFStyle] = strvalval ); }
                    if( 
strcmpkey "Prestamo" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPrestamo] = strvalval ); }
                    if( 
strcmpkey "Dias" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDias] = strvalval ); }
                    if( 
strcmpkey "Cantidad" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCantidad] = strvalval ); }
                    if( 
strcmpkey "SecSalud" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSecSalud] = strvalval ); }
                    if( 
strcmpkey "SecVeh" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSecVeh] = strvalval ); }
                    if( 
strcmpkey "SecRob" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSecRob] = strvalval ); }
                    if( 
strcmpkey "Hipoteca" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHipoteca] = strvalval ); }
                    if( 
strcmpkey "Matricula" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMatricula] = strvalval ); }
                    if( 
strcmpkey "Matricula2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMatricula2] = strvalval ); }
                    if( 
strcmpkey "Embargos" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pEmbargos] = strvalval ); }
                    if( 
strcmpkey "Embargos2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pEmbargos2] = strvalval ); }
                    if( 
strcmpkey "Warn" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWarn] = strvalval ); }
                    if( 
strcmpkey "Help" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHelp] = strvalval ); }
                    if( 
strcmpkey "Points" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPoints] = strvalval ); }
                    if( 
strcmpkey "Sec" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSec] = strvalval ); }
                    if( 
strcmpkey "Stars" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pStars] = strvalval ); }
                    if( 
strcmpkey "Updated" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pUpdated] = strvalval ); }
                }
//end while
                
fclose(UserFile);//close the file after everything has been read in the while
        
}
        else
        {
            new 
loginstring[128];
            new 
loginname[64];
            
GetPlayerName(playerid,loginname,sizeof(loginname));
            
format(loginstring,sizeof(loginstring),"Tu password no coincide con tu Nombre, Intenta de nuevo! \n Recuerda que tienes 3 Intentos si no te {FE2E2E}Kickeamos",loginname);
            
ShowPlayerDialog(playerid,998,DIALOG_STYLE_PASSWORD,"Password Incorrecta",loginstring,"Conectar","Salir");
            
fclose(UserFile);
            
gPlayerLogTries[playerid] += 1;
            if(
gPlayerLogTries[playerid] == 3) { Kick(playerid); }
            
GameTextForPlayer(playerid,"~y~~n~~n~~n~~n~~n~~n~~r~ Contraseсa Incorrecta o la escribiste mal",5000,5);
            
SetPlayerCameraPos(playerid,1334.000,-995.000,149.000);
            
SetPlayerCameraLookAt(playerid,1339.000,-998.000,149.000);
            
SetPlayerPos(playerid,1334.000,-995.000,109.000);
            return 
1;
        } 
Despues OnPlayerUpdate que es el que revista:

PHP код:
public OnPlayerUpdate(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        if(
gPlayerLogged[playerid])
        {
            new 
string3[64];
            new 
playername3[MAX_PLAYER_NAME];
            
GetPlayerName(playeridplayername3sizeof(playername3));
            
format(string3sizeof(string3), "Usuarios/%s.ini"playername3);
            new 
FilehFile fopen(string3io_write);
            if (
hFile)
            {
                new var[
64];
                
format(var, 64"Key=%s\n"PlayerInfo[playerid][pKey]);fwrite(hFile, var);
                
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
                
format(var, 64"ApodoAdmin=%s\n"PlayerInfo[playerid][pApodo]);fwrite(hFile, var);
                
format(var, 64"Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
                
format(var, 64"AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
                
format(var, 64"DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
                
format(var, 64"UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
                
format(var, 64"ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
                
format(var, 64"Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
                
format(var, 64"Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
                
format(var, 64"Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
                
format(var, 64"Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
                
format(var, 64"CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
                
format(var, 64"Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
                
format(var, 64"Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
                
format(var, 64"Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
                
format(var, 64"Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
                
format(var, 64"Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
                
format(var, 64"Warns=%d\n",PlayerInfo[playerid][pWarn]);fwrite(hFile, var);
                
format(var, 64"Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
                
format(var, 64"Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
                
format(var, 64"Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
                
format(var, 64"WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
                
format(var, 64"Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
                
format(var, 64"LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
                
format(var, 64"Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
                
format(var, 64"BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
                
format(var, 64"Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
                
format(var, 64"Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
                
format(var, 64"HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
                
format(var, 64"Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
                
format(var, 64"ISkin=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
                
format(var, 64"Casco=%d\n",PlayerInfo[playerid][pCasco]);fwrite(hFile, var);
                
format(var, 64"TarjetaCredito=%d\n",PlayerInfo[playerid][pTarjetaCredito]);fwrite(hFile, var);
                
format(var, 64"JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
                
format(var, 64"Materials=%d\n",PlayerInfo[playerid][pMateriales]);fwrite(hFile, var);
                
format(var, 64"MonedasOro=%d\n",PlayerInfo[playerid][pMonedas]);fwrite(hFile, var);
                
format(var, 64"Ganzuas=%d\n",PlayerInfo[playerid][pGanzuas]);fwrite(hFile, var);
            
//    format(var, 64, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
                
format(var, 64"DrugsNopre=%d\n",PlayerInfo[playerid][pDrugsNopre]);fwrite(hFile, var);
                
format(var, 64"Cocaina=%d\n",PlayerInfo[playerid][pCocaina]);fwrite(hFile, var);
                
format(var, 64"Heroina=%d\n",PlayerInfo[playerid][pHeroina]);fwrite(hFile, var);
                
format(var, 64"Extasis=%d\n",PlayerInfo[playerid][pExtasis]);fwrite(hFile, var);
                
format(var, 64"Marihuana=%d\n",PlayerInfo[playerid][pMarihuana]);fwrite(hFile, var);
                
format(var, 64"Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
                
format(var, 64"Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
                
format(var, 64"FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
                
format(var, 64"Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
                
format(var, 64"Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
                
format(var, 64"ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
                
format(var, 64"SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
                
format(var, 64"BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
                
format(var, 64"LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
                
format(var, 64"MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
                
format(var, 64"JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
                
format(var, 64"CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
                
format(var, 64"NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
                
format(var, 64"DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
                
format(var, 64"CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
                
format(var, 64"FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
                
format(var, 64"pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
                
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
                
format(var, 64"pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
                
format(var, 64"Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
                
format(var, 64"Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
                
format(var, 64"Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
                
format(var, 64"Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
                
format(var, 64"PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
                
format(var, 64"House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
                
format(var, 64"Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
                
fclose(hFile);
            }
        }
    } 
Pero lo que no entiendo es porque sucede esto?? Si hace rato no pasaba .-.
Reply
#6

Quote:
Originally Posted by Blaze_Strockovic
Посмотреть сообщение
Pero que Codigos? si no Lanza ninguno Error ._. Todo anda Perfecto en mi GM.. Lo que no entiendo es el porque? Antes cargaba a la perfecciуn ahora no

Por Colocar esto:

PHP код:
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) != 0)
    {
        
SetPlayerArmedWeapon(playerid,0);
        return 
0;
    } 
Al principio del callback OnPlayerUpdate, (que es el que carga el archivo guardado) їInterfiere?
pawn Код:
if(IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) != 0)
    {
        SetPlayerArmedWeapon(playerid,0);
    }
Prueva asi talves sea el return... luego me avisas si te sirvio o no...
Reply
#7

Nada, Sigue el Mismo Problema.. me fije, que Relogeo, y las cosas guardan, solo que me devuelve a la Posicion donde salgo al terminar el Test, y Fui haber la carpeta ScriptFile y note que en los archivos de Vehiculos/Auto1 y Auto2 Crean los archivos pero sin el nombre, deberia crearlo osea eje: Blaze_Strockovic.car pero sale: .car
Reply
#8

Al quitar este codigo de onplayerupdate funciona bien?

pawn Код:
if(IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) != 0)
    {
        SetPlayerArmedWeapon(playerid,0);
        return 0;
    }
Igualmente dejalo asi a ver que pasa

pawn Код:
if(IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) != 0)
    {
        SetPlayerArmedWeapon(playerid,0);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)