Account Save/Load
#1

So i'm changing from dini to yini finnaly.

How i open and close files here?
Since when i change like this my pawno crash...

examples:
pawn Code:
public OnPlayerLogin(playerid,password[])
{
    new tmp2[256]
    new string2[64];
    new string[128];
    new playername2[MAX_PLAYER_NAME];
    new playersip[24];

    SetRealName(playerid);
    GetPlayerName(playerid, playername2, sizeof(playername2));
    GetPlayerIp(playerid, playersip, sizeof(playersip));

    format(string2, sizeof(string2), "ERP/Users/%s.ini", playername2);

    if (fexist(string2))
    {
        new password2 = num_hash(password);
        if(INI_Int(string2,"Password") == password2)
        {
            PlayerInfo[playerid][pKey] = INI_Int(string2,"Password");
            PlayerInfo[playerid][pLevel] = INI_Int(string2,"Level");
            PlayerInfo[playerid][pSpawn] = INI_Int(string2,"Spawn");
        }
        else
        {
            gPlayerLogTries[playerid] += 1;
            ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Try Again, please Log-In","You have entered an incorrect password\nType your password below to log-in","Log-in","Quit");
            if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
            return 1;
        }
pawn Code:
public OnPlayerUpdateEx(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 1)
        {
            new string3[64];
            new playername3[MAX_PLAYER_NAME];
            GetPlayerName(playerid, playername3, sizeof(playername3));
            format(string3, sizeof(string3), "ERP/Users/%s.ini", playername3);

            INI_WriteInt(string3, "Password",PlayerInfo[playerid][pKey]);
            INI_WriteInt(string3, "Level",PlayerInfo[playerid][pLevel]);
            INI_WriteInt(string3, "Spawn",PlayerInfo[playerid][pSpawn]);
        }
    }
    return 1;
}
pawn Code:
public OnPlayerRegister(playerid, password[])
{
    if(IsPlayerConnected(playerid))
    {
        new string3[64];
        new string[128];
        new playersip[24];
        new playername3[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername3, sizeof(playername3));
        GetPlayerIp(playerid, playersip, sizeof(playersip));

        format(string3, sizeof(string3), "ERP/Users/%s.ini", playername3);

        INI_Open(string3);
        new password2 = num_hash(password);
        PlayerInfo[playerid][pKey] = password2;
        INI_WriteInt(string3, "Password",password2);
        INI_WriteInt(string3, "Level",PlayerInfo[playerid][pLevel]);
        INI_WriteInt(string3, "Spawn",PlayerInfo[playerid][pSpawn]);
        INI_Close(file);
        ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Welcome, Please Log-In","Account Successfuly Registred into the database!\nType your password below to log-in","Log-in","Quit");
        new y,m,d;
        new h,mi,s;
        getdate(y,m,d);
        gettime(h,mi,s);
        format(string,sizeof(string), "(%d/%d/%d) [%d:%d:%d] %s Has registred in under IP %s.",d,m,y,h,mi,s,playername3,playersip);
        PlayerInfo[playerid][pReg] = 0;
        LoginLog(string);
    }
    return 1;
}
Reply
#2

look for a missing { or } bracket (that's when my pawno always crashed, when I removed one on accident for example)

I don't suppose that this:

pawn Code:
public OnPlayerLogin(playerid,password[])
{
    new tmp2[256]
    new string2[64];
    new string[128];
    new playername2[MAX_PLAYER_NAME];
    new playersip[24];

    SetRealName(playerid);
    GetPlayerName(playerid, playername2, sizeof(playername2));
    GetPlayerIp(playerid, playersip, sizeof(playersip));

    format(string2, sizeof(string2), "ERP/Users/%s.ini", playername2);

    if (fexist(string2))
    {
        new password2 = num_hash(password);
        if(INI_Int(string2,"Password") == password2)
        {
            PlayerInfo[playerid][pKey] = INI_Int(string2,"Password");
            PlayerInfo[playerid][pLevel] = INI_Int(string2,"Level");
            PlayerInfo[playerid][pSpawn] = INI_Int(string2,"Spawn");
        }
        else
        {
            gPlayerLogTries[playerid] += 1;
            ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Try Again, please Log-In","You have entered an incorrect password\nType your password below to log-in","Log-in","Quit");
            if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
            return 1;
        }
has to get changed to (the last 3 lines)?:
pawn Code:
public OnPlayerLogin(playerid,password[])
{
    new tmp2[256]
    new string2[64];
    new string[128];
    new playername2[MAX_PLAYER_NAME];
    new playersip[24];

    SetRealName(playerid);
    GetPlayerName(playerid, playername2, sizeof(playername2));
    GetPlayerIp(playerid, playersip, sizeof(playersip));

    format(string2, sizeof(string2), "ERP/Users/%s.ini", playername2);

    if (fexist(string2))
    {
        new password2 = num_hash(password);
        if(INI_Int(string2,"Password") == password2)
        {
            PlayerInfo[playerid][pKey] = INI_Int(string2,"Password");
            PlayerInfo[playerid][pLevel] = INI_Int(string2,"Level");
            PlayerInfo[playerid][pSpawn] = INI_Int(string2,"Spawn");
        }
        else
        {
            gPlayerLogTries[playerid] += 1;
            ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Try Again, please Log-In","You have entered an incorrect password\nType your password below to log-in","Log-in","Quit");
            if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
            return 1;
        }
    }
    return 1;
}
Because I think that you OnPlayerLogin function does more than you posted?
If not, then that is your problem.

I can't test the function for you because I don't use that ini system.

Edit:
[Okay Sublime, just posted the same solution as I did while I was editing my post]
But again, this is the problem if that is your entire OnPlayerLogin, if it is not, please
post the complete function. The others look good.
Atleast I'll be fair: +Rep for Sublime, because "technically" his complete post was there
sooner than mine [Okay tomorrow then because I gave to much rep today )
Reply
#3

pawn Code:
public OnPlayerLogin(playerid,password[])
{
    new tmp2[256]
    new string2[64];
    new string[128];
    new playername2[MAX_PLAYER_NAME];
    new playersip[24];

    SetRealName(playerid);
    GetPlayerName(playerid, playername2, sizeof(playername2));
    GetPlayerIp(playerid, playersip, sizeof(playersip));

    format(string2, sizeof(string2), "ERP/Users/%s.ini", playername2);

    if (fexist(string2))
    {
        new password2 = num_hash(password);
        if(INI_Int(string2,"Password") == password2)
        {
            PlayerInfo[playerid][pKey] = INI_Int(string2,"Password");
            PlayerInfo[playerid][pLevel] = INI_Int(string2,"Level");
            PlayerInfo[playerid][pSpawn] = INI_Int(string2,"Spawn");
        }
        else
        {
            gPlayerLogTries[playerid] += 1;
            ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Try Again, please Log-In","You have entered an incorrect password\nType your password below to log-in","Log-in","Quit");
            if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
        }
     }//missed this
     return 1;// return value is supposed to be below the bracket above
}//and you missed this too
Reply
#4

Nah,it's not problem in OnPlayerLogin i gave example it's not full code
but here is it if you want it to check,but i think it's problem in ini open/close since i don't understand that part about open close.

pawn Code:
public OnPlayerLogin(playerid,password[])
{
    new tmp2[256]
    new string2[64];
    new string[128];
    new playername2[MAX_PLAYER_NAME];
    new playersip[24];

    SetRealName(playerid);
    GetPlayerName(playerid, playername2, sizeof(playername2));
    GetPlayerIp(playerid, playersip, sizeof(playersip));

    format(string2, sizeof(string2), "ERP/Users/%s.ini", playername2);

    if (fexist(string2))
    {
        new password2 = num_hash(password);
        if(INI_Int(string2,"Password") == password2)
        {
            PlayerInfo[playerid][pKey] = INI_Int(string2,"Password");
            PlayerInfo[playerid][pLevel] = INI_Int(string2,"Level");
            PlayerInfo[playerid][pSpawn] = INI_Int(string2,"Spawn");
            PlayerInfo[playerid][pTester] = INI_Int(string2,"TesterLevel");
            PlayerInfo[playerid][pHelper] = INI_Int(string2,"HelperLevel");
            PlayerInfo[playerid][pAdmin] = INI_Int(string2,"AdminLevel");
            PlayerInfo[playerid][pRegularRank] = INI_Int(string2,"RegularRank");
            PlayerInfo[playerid][gPupgrade] = INI_Int(string2,"UpgradePoints");
            PlayerInfo[playerid][pConnectSeconds] = INI_Int(string2,"ConnectedTime");
            PlayerInfo[playerid][pReg] = INI_Int(string2,"Registered");
            PlayerInfo[playerid][pSex] = INI_Int(string2,"Sex");
            PlayerInfo[playerid][pAge] = INI_Int(string2,"Age");
            PlayerInfo[playerid][pGPS] = INI_Int(string2,"GPS");
            PlayerInfo[playerid][pOrigin] = INI_Int(string2,"Origin");
            PlayerInfo[playerid][pCK] = INI_Int(string2,"CK");
            PlayerInfo[playerid][pMuted] = INI_Int(string2,"Muted");
            PlayerInfo[playerid][pNmuted] = INI_Int(string2,"NewbieMuted");
            PlayerInfo[playerid][pFrozen] = INI_Int(string2,"Frozen");
            PlayerInfo[playerid][pBlind] = INI_Int(string2,"Blind");
            PlayerInfo[playerid][pExp] = INI_Int(string2,"Respect");
            PlayerInfo[playerid][pCash] = INI_Int(string2,"Money");
            PlayerInfo[playerid][pAccount] = INI_Int(string2,"Bank");
            PlayerInfo[playerid][pCrimes] = INI_Int(string2,"Crimes");
            strmid(PlayerInfo[playerid][pCrimeReason],INI_String(string2,"CrimeReason"),0,strlen(INI_String(string2,"CrimeReason")),255);
            PlayerInfo[playerid][pWanted] = INI_Int(string2,"Wanted");
            PlayerInfo[playerid][pWantedLevel] = INI_Int(string2,"WantedLevel");
            PlayerInfo[playerid][pKills] = INI_Int(string2,"Kills");
            PlayerInfo[playerid][pDeaths] = INI_Int(string2,"Deaths");
            PlayerInfo[playerid][pArrested] = INI_Int(string2,"Arrested");
            PlayerInfo[playerid][pWantedDeaths] = INI_Int(string2,"WantedDeaths");
            PlayerInfo[playerid][pPhoneBook] = INI_Int(string2,"PhoneBook");
            PlayerInfo[playerid][pLottoNr] = INI_Int(string2,"LottoNr");
            PlayerInfo[playerid][pFishes] = INI_Int(string2,"Fishes");
            PlayerInfo[playerid][pBiggestFish] = INI_Int(string2,"BiggestFish");
            PlayerInfo[playerid][pJob] = INI_Int(string2,"Job");
            PlayerInfo[playerid][pPayCheck] = INI_Int(string2,"Paycheck");
            PlayerInfo[playerid][pHeadValue] = INI_Int(string2,"HeadValue");
            PlayerInfo[playerid][pJailed] = INI_Int(string2,"Jailed");
            PlayerInfo[playerid][pJailTime] = INI_Int(string2,"JailTime");
            PlayerInfo[playerid][pRobTime] = INI_Int(string2,"CanRobTime");
            PlayerInfo[playerid][pMats] = INI_Int(string2,"Materials");
            PlayerInfo[playerid][pDrugs] = INI_Int(string2,"Drugs");
            PlayerInfo[playerid][pLeader] = INI_Int(string2,"Leader");
            PlayerInfo[playerid][pMember] = INI_Int(string2,"Member");
            PlayerInfo[playerid][pFMember] = INI_Int(string2,"FMember");
            PlayerInfo[playerid][pAddict] = INI_Int(string2,"Addicted");
            PlayerInfo[playerid][pRank] = INI_Int(string2,"Rank");
            PlayerInfo[playerid][pChar] = INI_Int(string2,"Char");
            PlayerInfo[playerid][pContractTime] = INI_Int(string2,"ContractTime");
            PlayerInfo[playerid][pDetSkill] = INI_Int(string2,"DetSkill");
            PlayerInfo[playerid][pSexSkill] = INI_Int(string2,"SexSkill");
            PlayerInfo[playerid][pBoxSkill] = INI_Int(string2,"BoxSkill");
            PlayerInfo[playerid][pLawSkill] = INI_Int(string2,"LawSkill");
            PlayerInfo[playerid][pMechSkill] = INI_Int(string2,"MechSkill");
            PlayerInfo[playerid][pJackSkill] = INI_Int(string2,"JackSkill");
            PlayerInfo[playerid][pCarSkill] = INI_Int(string2,"CarSkill");
            PlayerInfo[playerid][pNewsSkill] = INI_Int(string2,"NewsSkill");
            PlayerInfo[playerid][pDrugsSkill] = INI_Int(string2,"DrugsSkill");
            PlayerInfo[playerid][pCookSkill] = INI_Int(string2,"CookSkill");
            PlayerInfo[playerid][pFishSkill] = INI_Int(string2,"FishSkill");
            PlayerInfo[playerid][pHealth] = INI_Float(string2,"pHealth");
            PlayerInfo[playerid][pArmour] = INI_Float(string2,"pArmour");
            PlayerInfo[playerid][pInt] = INI_Int(string2,"Int");
            PlayerInfo[playerid][pInteriorNr] = INI_Int(string2,"InteriorNr");
            PlayerInfo[playerid][pLocal] = INI_Int(string2,"Local");
            PlayerInfo[playerid][pTeam] = INI_Int(string2,"Team");
            PlayerInfo[playerid][pModel] = INI_Int(string2,"Model");
            PlayerInfo[playerid][pPnumber] = INI_Int(string2,"PhoneNr");
            PlayerInfo[playerid][pPcarkey] = INI_Int(string2,"Car");
            PlayerInfo[playerid][pPcarkey2] = INI_Int(string2,"Car2");
            PlayerInfo[playerid][pPcarkey3] = INI_Int(string2,"Car3");
            PlayerInfo[playerid][pPhousekey] = INI_Int(string2,"House");
            PlayerInfo[playerid][pPbiskey] = INI_Int(string2,"Bizz");
            PlayerInfo[playerid][pPos_x] = INI_Float(string2,"Pos_x");
            PlayerInfo[playerid][pPos_y] = INI_Float(string2,"Pos_y");
            PlayerInfo[playerid][pPos_z] = INI_Float(string2,"Pos_z");
            PlayerInfo[playerid][pPassport] = INI_Int(string2,"Passport");
            PlayerInfo[playerid][pCarLic] = INI_Int(string2,"CarLic");
            PlayerInfo[playerid][pFlyLic] = INI_Int(string2,"FlyLic");
            PlayerInfo[playerid][pBoatLic] = INI_Int(string2,"BoatLic");
            PlayerInfo[playerid][pFishLic] = INI_Int(string2,"FishLic");
            PlayerInfo[playerid][pGunLic] = INI_Int(string2,"GunLic");
            PlayerInfo[playerid][pCopLic] = INI_Int(string2,"CopLic");
            PlayerInfo[playerid][pDelLic] = INI_Int(string2,"DelLic");
            PlayerInfo[playerid][pArmyLic] = INI_Int(string2,"ArmyLic");
            PlayerInfo[playerid][pCarTime] = INI_Int(string2,"CarTime");
            PlayerInfo[playerid][pPayDay] = INI_Int(string2,"PayDay");
            PlayerInfo[playerid][pPayDayHad] = INI_Int(string2,"PayDayHad");
            PlayerInfo[playerid][pWatch] = INI_Int(string2,"Watch");
            PlayerInfo[playerid][pCrashed] = INI_Int(string2,"Crashed");
            PlayerInfo[playerid][pWins] = INI_Int(string2,"Wins");
            PlayerInfo[playerid][pLoses] = INI_Int(string2,"Loses");
            PlayerInfo[playerid][pAlcoholPerk] = INI_Int(string2,"AlcoholPerk");
            PlayerInfo[playerid][pDrugPerk] = INI_Int(string2,"DrugPerk");
            PlayerInfo[playerid][pMiserPerk] = INI_Int(string2,"MiserPerk");
            PlayerInfo[playerid][pPainPerk] = INI_Int(string2,"PainPerk");
            PlayerInfo[playerid][pTraderPerk] = INI_Int(string2,"TraderPerk");
            PlayerInfo[playerid][pTut] = INI_Int(string2,"Tutorial");
            PlayerInfo[playerid][pVirWorld] = INI_Int(string2,"VirWorld");
            PlayerInfo[playerid][pFuel] = INI_Int(string2,"Fuel");
            PlayerInfo[playerid][pMarried] = INI_Int(string2,"Married");
            strmid(PlayerInfo[playerid][pMarriedTo],INI_String(string2,"MarriedTo"),0,strlen(INI_String(string2,"MarriedTo")),255);
            PlayerInfo[playerid][pFishTool] = INI_Int(string2,"FlyLic");
            strmid(PlayerInfo[playerid][pWhyLeft],INI_String(string2,"WhyLeft"),0,strlen(INI_String(string2,"WhyLeft")),255);
            strmid(PlayerInfo[playerid][pNote1],INI_String(string2,"Note1"),0,strlen(INI_String(string2,"Note1")),255);
            PlayerInfo[playerid][pNote1s] = INI_Int(string2,"Note1s");
            strmid(PlayerInfo[playerid][pNote2],INI_String(string2,"Note2"),0,strlen(INI_String(string2,"Note2")),255);
            PlayerInfo[playerid][pNote2s] = INI_Int(string2,"Note2s");
            strmid(PlayerInfo[playerid][pNote3],INI_String(string2,"Note3"),0,strlen(INI_String(string2,"Note3")),255);
            PlayerInfo[playerid][pNote3s] = INI_Int(string2,"Note3s");
            strmid(PlayerInfo[playerid][pNote4],INI_String(string2,"Note4"),0,strlen(INI_String(string2,"Note4")),255);
            PlayerInfo[playerid][pNote4s] = INI_Int(string2,"Note4s");
            strmid(PlayerInfo[playerid][pNote5],INI_String(string2,"Note5"),0,strlen(INI_String(string2,"Note5")),255);
            PlayerInfo[playerid][pNote5s] = INI_Int(string2,"Note5s");
            PlayerInfo[playerid][pInvWeapon] = INI_Int(string2,"InvWeapon");
            PlayerInfo[playerid][pInvAmmo] = INI_Int(string2,"InvAmmo");
            PlayerInfo[playerid][pInvWeapon2] = INI_Int(string2,"InvWeapon2");
            PlayerInfo[playerid][pInvAmmo2] = INI_Int(string2,"InvAmmo2");
            PlayerInfo[playerid][pInvWeapon3] = INI_Int(string2,"InvWeapon3");
            PlayerInfo[playerid][pInvAmmo3] = INI_Int(string2,"InvAmmo3");
            PlayerInfo[playerid][pInvWeapon4] = INI_Int(string2,"InvWeapon4");
            PlayerInfo[playerid][pInvAmmo4] = INI_Int(string2,"InvAmmo4");
            PlayerInfo[playerid][pInvWeapon5] = INI_Int(string2,"InvWeapon5");
            PlayerInfo[playerid][pInvAmmo5] = INI_Int(string2,"InvAmmo5");
            PlayerInfo[playerid][pInvWeapon6] = INI_Int(string2,"InvWeapon6");
            PlayerInfo[playerid][pInvAmmo6] = INI_Int(string2,"InvAmmo6");
            PlayerInfo[playerid][pLighter] = INI_Int(string2,"Lighter");
            PlayerInfo[playerid][pCigarettes] = INI_Int(string2,"Cigarettes");
            PlayerInfo[playerid][pTimesSmoked] = INI_Int(string2,"TimesSmoked");
            PlayerInfo[playerid][pDM] = INI_Int(string2,"DDManager");
            PlayerInfo[playerid][pDuty] = INI_Int(string2,"OnDuty");
            PlayerInfo[playerid][pWarned] = INI_Int(string2,"Warnings");
            PlayerInfo[playerid][pSwat] = INI_Int(string2,"Swat");
            PlayerInfo[playerid][pFS] = INI_Int(string2,"Fighting");
            PlayerInfo[playerid][pBoxiSkill] = INI_Int(string2,"Boxing");
            PlayerInfo[playerid][pKneeSkill] = INI_Int(string2,"KneeHead");
            PlayerInfo[playerid][pKungSkill] = INI_Int(string2,"KungFu");
            PlayerInfo[playerid][pGrabSkill] = INI_Int(string2,"GrabKick");
            PlayerInfo[playerid][pElbowSkill] = INI_Int(string2,"ElBow");
            PlayerInfo[playerid][pTactical] = INI_Int(string2,"Tactical");
            PlayerInfo[playerid][pAT] = INI_Int(string2,"ArmyTicket");
            PlayerInfo[playerid][pSpecialF] = INI_Int(string2,"SpecialF");
            PlayerInfo[playerid][pDBanned] = INI_Int(string2,"DutyBanned");
            PlayerInfo[playerid][pFactionBan] = INI_Int(string2,"FactionBanned");
            PlayerInfo[playerid][pDTK] = INI_Int(string2,"DDTicket");
            PlayerInfo[playerid][pDSTK] = INI_Int(string2,"DDSTicket");
            PlayerInfo[playerid][pSpeedo] = INI_Int(string2,"Speedo");
            PlayerInfo[playerid][pHunterR] = INI_Int(string2,"HunterDriver");
            PlayerInfo[playerid][pRhinoR] = INI_Int(string2,"RhinoDriver");
            PlayerInfo[playerid][pPredR] = INI_Int(string2,"PredatorDriver");
            PlayerInfo[playerid][pHydraR] = INI_Int(string2,"RhinoDriver");
            PlayerInfo[playerid][pViewPms] = INI_Int(string2,"ViewPms");
            PlayerInfo[playerid][pAppearList] = INI_Int(string2,"AppearList");
            PlayerInfo[playerid][pPistSkill] = INI_Int(string2,"PistolSkill");
            PlayerInfo[playerid][pSilenSkill] = INI_Int(string2,"SilencedSkill");
            PlayerInfo[playerid][pDesertSkill] = INI_Int(string2,"DesertSkill");
            PlayerInfo[playerid][pShotgSkill] = INI_Int(string2,"ShotgunSkill");
            PlayerInfo[playerid][pSawnSkill] = INI_Int(string2,"SawnoffSkill");
            PlayerInfo[playerid][pCombSkill] = INI_Int(string2,"CombatSkill");
            PlayerInfo[playerid][pUziSkill] = INI_Int(string2,"UziSkill");
            PlayerInfo[playerid][pSmgSkill] = INI_Int(string2,"SMGSkill");
            PlayerInfo[playerid][pAkSkill] = INI_Int(string2,"AK47Skill");
            PlayerInfo[playerid][pM4Skill] = INI_Int(string2,"M4Skill");
            PlayerInfo[playerid][pTutDone] = INI_Int(string2,"TutorialDone");
            PlayerInfo[playerid][pRegularCount] = INI_Int(string2,"RegularCount");
            PlayerInfo[playerid][pPassportTime] = INI_Int(string2,"PassportTime");
            PlayerInfo[playerid][pOfficerTime] = INI_Int(string2,"Officertime");
            PlayerInfo[playerid][pAchievement0] = INI_Int(string2,"Achievement0");
            PlayerInfo[playerid][pAchievement1] = INI_Int(string2,"Achievement1");
            PlayerInfo[playerid][pAchievement2] = INI_Int(string2,"Achievement2");
            PlayerInfo[playerid][pAchievement3] = INI_Int(string2,"Achievement3");
            PlayerInfo[playerid][pAchievement4] = INI_Int(string2,"Achievement4");
            PlayerInfo[playerid][pAchievement5] = INI_Int(string2,"Achievement5");
            PlayerInfo[playerid][pAchievement6] = INI_Int(string2,"Achievement6");
            PlayerInfo[playerid][pAchievement7] = INI_Int(string2,"Achievement7");
            PlayerInfo[playerid][pAchievement8] = INI_Int(string2,"Achievement8");
            PlayerInfo[playerid][pAchievement9] = INI_Int(string2,"Achievement9");
            PlayerInfo[playerid][pAchievement10] = INI_Int(string2,"Achievement10");
            PlayerInfo[playerid][pAchievement11] = INI_Int(string2,"Achievement11");
            PlayerInfo[playerid][pAchievement12] = INI_Int(string2,"Achievement12");
            PlayerInfo[playerid][pAchievement13] = INI_Int(string2,"Achievement13");
            PlayerInfo[playerid][pAchievement14] = INI_Int(string2,"Achievement14");
            PlayerInfo[playerid][pAchievement15] = INI_Int(string2,"Achievement15");
            PlayerInfo[playerid][pAchievement16] = INI_Int(string2,"Achievement16");
            PlayerInfo[playerid][pAchievement17] = INI_Int(string2,"Achievement17");
            PlayerInfo[playerid][pAchievement18] = INI_Int(string2,"Achievement18");
            PlayerInfo[playerid][pAchievement19] = INI_Int(string2,"Achievement19");
            PlayerInfo[playerid][pAchievement20] = INI_Int(string2,"Achievement20");
            PlayerInfo[playerid][pShiftName] = INI_Int(string2,"ShiftName");
            PlayerInfo[playerid][pWeapon] = INI_Int(string2,"Weapon");
            PlayerInfo[playerid][pAmmo] = INI_Int(string2,"Ammo");
            PlayerInfo[playerid][pWeapon2] = INI_Int(string2,"Weapon2");
            PlayerInfo[playerid][pAmmo2] = INI_Int(string2,"Ammo2");
            PlayerInfo[playerid][pWeapon3] = INI_Int(string2,"Weapon3");
            PlayerInfo[playerid][pAmmo3] = INI_Int(string2,"Ammo3");
            PlayerInfo[playerid][pWeapon4] = INI_Int(string2,"Weapon4");
            PlayerInfo[playerid][pAmmo4] = INI_Int(string2,"Ammo4");
            PlayerInfo[playerid][pWeapon5] = INI_Int(string2,"Weapon5");
            PlayerInfo[playerid][pAmmo5] = INI_Int(string2,"Ammo5");
            PlayerInfo[playerid][pWeapon6] = INI_Int(string2,"Weapon6");
            PlayerInfo[playerid][pAmmo6] = INI_Int(string2,"Ammo6");
            PlayerInfo[playerid][pWeapon7] = INI_Int(string2,"Weapon7");
            PlayerInfo[playerid][pAmmo7] = INI_Int(string2,"Ammo7");
            PlayerInfo[playerid][pWeapon8] = INI_Int(string2,"Weapon8");
            PlayerInfo[playerid][pAmmo8] = INI_Int(string2,"Ammo8");
            PlayerInfo[playerid][pWeapon9] = INI_Int(string2,"Weapon9");
            PlayerInfo[playerid][pAmmo9] = INI_Int(string2,"Ammo9");
            PlayerInfo[playerid][pWeapon10] = INI_Int(string2,"Weapon10");
            PlayerInfo[playerid][pAmmo10] = INI_Int(string2,"Ammo10");
            PlayerInfo[playerid][pWeapon11] = INI_Int(string2,"Weapon11");
            PlayerInfo[playerid][pAmmo11] = INI_Int(string2,"Ammo11");
            PlayerInfo[playerid][pWeapon12] = INI_Int(string2,"Weapon12");
            PlayerInfo[playerid][pAmmo12] = INI_Int(string2,"Ammo12");
            PlayerInfo[playerid][pAtc] = INI_Int(string2,"Atc");
            PlayerInfo[playerid][pAtcRadio] = INI_Int(string2,"AtcRadio");
            PlayerInfo[playerid][pPending] = INI_Int(string2,"Pending");
            strmid(PlayerInfo[playerid][pPendingInfo],INI_String(string2,"PendingInfo"),0,strlen(INI_String(string2,"PendingInfo")),255);
            PlayerInfo[playerid][pChatMode] = INI_Int(string2,"ChatMode");
            PlayerInfo[playerid][pTruckLoad] = INI_Int(string2,"TruckLoad");
            strmid(PlayerInfo[playerid][pPunishment1],INI_String(string2,"Punishment1"),0,strlen(INI_String(string2,"Punishment1")),255);
            strmid(PlayerInfo[playerid][pPunishment2],INI_String(string2,"Punishment2"),0,strlen(INI_String(string2,"Punishment2")),255);
            strmid(PlayerInfo[playerid][pPunishment3],INI_String(string2,"Punishment3"),0,strlen(INI_String(string2,"Punishment3")),255);
            strmid(PlayerInfo[playerid][pPunishment4],INI_String(string2,"Punishment4"),0,strlen(INI_String(string2,"Punishment4")),255);
            strmid(PlayerInfo[playerid][pPunishment5],INI_String(string2,"Punishment5"),0,strlen(INI_String(string2,"Punishment5")),255);
            strmid(PlayerInfo[playerid][pPunishment6],INI_String(string2,"Punishment6"),0,strlen(INI_String(string2,"Punishment6")),255);
            strmid(PlayerInfo[playerid][pPunishment7],INI_String(string2,"Punishment7"),0,strlen(INI_String(string2,"Punishment7")),255);
            strmid(PlayerInfo[playerid][pPunishment8],INI_String(string2,"Punishment8"),0,strlen(INI_String(string2,"Punishment8")),255);
            PlayerInfo[playerid][pNextPunishment] = INI_Int(string2,"NextPunishment");
            PlayerInfo[playerid][pTazerBullets] = INI_Int(string2,"TazerBullets");
            strmid(PlayerInfo[playerid][pIP],INI_String(string2,"IP"),0,strlen(INI_String(string2,"IP")),255);
            strmid(PlayerInfo[playerid][pLastSeen],INI_String(string2,"LastLogged"),0,strlen(INI_String(string2,"LastLogged")),255);
            PlayerInfo[playerid][pChanged] = INI_Int(string2,"Changed");
            strmid(PlayerInfo[playerid][pRegistredDate],INI_String(string2,"RegistredDate"),0,strlen(INI_String(string2,"RegistredDate")),255);
            BizzEntered[playerid] = INI_Int(string2,"BizzEntered");
            HouseEntered[playerid] = INI_Int(string2,"HouseEntered");
            PlayerInfo[playerid][pPinKod] = INI_Int(string2,"PinKod");
            PlayerInfo[playerid][pKredit] = INI_Int(string2,"Kredit");
            PlayerInfo[playerid][pZarada] = INI_Int(string2,"Zarada");
            PlayerInfo[playerid][pMIron] = INI_Int(string2, "MIron");
            PlayerInfo[playerid][pAxe] = INI_Int(string2, "Axe");
            PlayerInfo[playerid][pIron] = INI_Int(string2, "Iron");
            PlayerInfo[playerid][pSenate] = INI_Int(string2,"Senate");
            PlayerInfo[playerid][pLockpicks] = INI_Int(string2,"LockPicks");
            PlayerInfo[playerid][pLungCancer] = INI_Int(string2,"LungCancer");
            PlayerInfo[playerid][pSmokeAddicted] = INI_Int(string2,"SmokeAddicted");
            PlayerInfo[playerid][pDealer] = INI_Int(string2,"Dealer");
        }
        else
        {
            gPlayerLogTries[playerid] += 1;
            ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Try Again, please Log-In","You have entered an incorrect password\nType your password below to log-in","Log-in","Quit");
            if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
            return 1;
        }
        RingTone[playerid] = 20;
        SetRealMoney(playerid, ScriptMoney[playerid]);
        TextDrawShowForPlayer(playerid, Textdraw44);
        TextDrawShowForPlayer(playerid, Textdraw45);
        TextDrawShowForPlayer(playerid, Textdraw49[playerid]);
        TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
        TextDrawShowForPlayer(playerid, Textdraw53[playerid]);
        TextDrawShowForPlayer(playerid, Textdraw55);
        if(CountdownRunning == 1)
        {
            TextDrawShowForPlayer(playerid, Textdraw46);
        }
        if(PlayerInfo[playerid][pReg] == 0)
        {
            PlayerInfo[playerid][pLevel] = 1;
            PlayerInfo[playerid][pHealth] = 50.0;
            PlayerInfo[playerid][pArmour] = 0.0;
            PlayerInfo[playerid][pCash] = 0;
            PlayerInfo[playerid][pPassportTime] = 500;
            PlayerInfo[playerid][pRegularCount] = 144000;
            PlayerInfo[playerid][pInt] = 0;
            PlayerInfo[playerid][pLocal] = 255;
            PlayerInfo[playerid][pTeam] = 3;
            PlayerInfo[playerid][pModel] = 135;
            new randphone = 100000 + random(899999);//minimum 1000  max 9999 //giving one at the start
            PlayerInfo[playerid][pPnumber] = randphone;
            PlayerInfo[playerid][pPhousekey] = 9999;
            PlayerInfo[playerid][pPcarkey] = 9999;
            PlayerInfo[playerid][pPcarkey2] = 9999;
            PlayerInfo[playerid][pPcarkey3] = 9999;
            PlayerInfo[playerid][pPbiskey] = 9999;
            PlayerInfo[playerid][pAccount] = 0;
            PlayerInfo[playerid][pReg] = 1;
            SafeGivePlayerMoney(playerid, 300);
            new d,m,y;
            new h,mi,s;
            getdate(y,m,d);
            gettime(h,mi,s);
            format(string,sizeof(string),  "%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s);
            strmid(PlayerInfo[playerid][pRegistredDate], string, 0, strlen(string), 255);
        }
        new PlayerNamee[MAX_PLAYER_NAME];
        GetPlayerName(playerid, PlayerNamee, MAX_PLAYER_NAME);
        format(string,sizeof(string),"LARP/Users/AccBans/%s.ban", PlayerNamee);
        if(fexist(string))
        {
            SendClientMessage(playerid, COLOR_YELLOW2, "Your Are Ban Evading.IF you continue like this.You will never get unbanned.");
            Kick(playerid);
            return 1;
        }
        if(PlayerInfo[playerid][pAddict] == 1)
        {
            Addicttimer = SetTimerEx("Addicttimerr",1200000,false,"d",playerid);
        }
        SetPlayerSkills(playerid);
        if(PlayerInfo[playerid][pPending] == 1)
        {
            format(string, sizeof(string), "[ERP-Info]: %s has just logged in with a pending ban, take action on him!!",playername2);
            SendAdminMessage(COLOR_RLRPGBLUE, string);
        }
        else if(PlayerInfo[playerid][pCK] > 0)
        {
            Kick(playerid);
        }
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            admins ++;
        }
        SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
        SafeSetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
        SafeResetPlayerMoney(playerid);
        SafeGivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
        ClearChatbox(playerid, 8);
        SendClientMessage(playerid, COLOR_RLRPGBLUE, "=======================================================================");
        format(string2, sizeof(string2), "Welcome to Europe Roleplay, %s.",playername2);
        SendClientMessage(playerid, COLOR_RLRPGBLUE,string2);
        strmid(PlayerInfo[playerid][pIP], playersip, 0, strlen(playersip), 255);
        if (PlayerInfo[playerid][pRegularRank] > 0)
        {
            SendClientMessage(playerid, COLOR_RLRPGBLUE,"");
        }
        SendClientMessage(playerid, COLOR_RLRPGBLUE, "=======================================================================");
        strmid(PlayerInfo[playerid][pIP], playersip, 0, strlen(playersip), 255);
        if (PlayerInfo[playerid][pAdmin] == 1)
        {
            format(string2, sizeof(string2), "You are logged in as a Trial Admin Assistant",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 2)
        {
            format(string2, sizeof(string2), "You are logged in as a Admin Assistant",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 3)
        {
            format(string2, sizeof(string2), "You are logged in as an {FF0000}Administrator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 4)
        {
            format(string2, sizeof(string2), "You are logged in as an {FF0000}Senior Administrator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 5)
        {
            format(string2, sizeof(string2), "You are logged in as an {FF0000}Main Administrator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 6)
        {
            format(string2, sizeof(string2), "You are logged in as the {FF0000}Server Head Administrator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 1335)
        {
            format(string2, sizeof(string2), "You are logged in as the {FF0000}Server Co Owner{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Developer)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 1336)
        {
            format(string2, sizeof(string2), "You are logged in as the {FF0000}Server Co Scripter{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Developer)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 1337)
        {
            format(string2, sizeof(string2), "You are logged in as the {FF0000}Server Scripter{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Developer)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 1338)
        {
            format(string2, sizeof(string2), "You are logged in as the {FF0000}Server Creator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Owner)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        SendClientMessage(playerid, COLOR_RLRPGBLUE, "=======================================================================");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        // Reset the FirstSpawn variable
        SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid);
        // Unset Crash
        SetTimerEx("UnsetCrash", 5000, false, "i", playerid);
        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);
        if(gTeam[playerid] == 0)
        {
            gTeam[playerid] = 3;
        }
        else
        {
            gTeam[playerid] = PlayerInfo[playerid][pTeam];
        }
        gPlayerLogged[playerid] = 1;
        SpawnPlayer(playerid);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 0);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 0);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 0);
        if(PlayerInfo[playerid][pAdmin] >= 1336 && PlayerInfo[playerid][pAdmin] != 1337)
        {
            PlayerInfo[playerid][pAppearList] = 1; // to 0 if you want admins dont appear
        }
        else
        {
            PlayerInfo[playerid][pAppearList] = 1;
        }
        SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
        SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
        SpawnWorld[playerid] = GetPlayerVirtualWorld(playerid);
        SpawnInterior[playerid] = GetPlayerInterior(playerid);
        if(PlayerInfo[playerid][pBlind] == 1)
        {
            TextDrawShowForPlayer(playerid, Textdraw5);
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "You were Blinded by an administrator in your last session; Use /atalk if need help from Admins.");
        }
        if(PlayerInfo[playerid][pFrozen] == 1)
        {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "You were Freezed by an administrator in your last session; Use /atalk if need help from Admins.");
        }
        if(PlayerInfo[playerid][pMuted] == 1)
        {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "You were Muted by an administrator in your last session; Use /atalk if need help from Admins.");
        }
        if(PlayerInfo[playerid][pNmuted] == 1)
        {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "You where Muted from the Newbie Channel by an administrator in your last session, Use /atalk if need help from Admins.");
        }
        if(PlayerInfo[playerid][pJailed] == 1)
        {
            format(string, sizeof(string), "You are jailed for %d Seconds; Use /atalk if need help from Admins.", PlayerInfo[playerid][pJailTime]);
            SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
            TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
        }
        if(PlayerInfo[playerid][pJailed] == 2)
        {
            format(string, sizeof(string), "You are Prisoned for %d Seconds; Use /atalk if need help from Admins.", PlayerInfo[playerid][pJailTime]);
            SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
            TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
        }
        if(PlayerInfo[playerid][pCrashed] == 0)
        {
            format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~y~   %s", playername2);
        }
        GameTextForPlayer(playerid, tmp2, 5000, 1);
        SendClientMessage(playerid, COLOR_YELLOW, textmotd);
        if(PlayerInfo[playerid][pFMember] < 255)
        {
            format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
            SendClientMessage(playerid, COLOR_YELLOW, tmp2);
        }
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[i][pMaskuse] == 1)
                {
                    ShowPlayerNameTagForPlayer(playerid, i, 0);
                }
            }
        }
        if(!strcmp(playername2, "TheDon", true)) // Developer Immunity.
        {
            Untouchable[playerid] = 1;
        }
        if(!strcmp(playername2, "Niko", true)) // Developer Immunity.
        {
            Untouchable[playerid] = 1;
        }

        if(First == 0)
        {
            if(PlayerInfo[playerid][pAdmin] >= 6)
            {
                new message[] = "Welcome; The script has Detected that this could be the first time that you turn on the Server. \n\n\n I'm Cuervo, i will teach you some things that you must modify ont he script. \n\n\n Press \"Proceed\" To Go on with the Tutorial";
                ShowPlayerDialog(playerid, 1250, DIALOG_STYLE_MSGBOX, "Welcome.......",message,"Proceed","Cancel");
            }
        }
        if(PlayerInfo[playerid][pWanted] == 1)
        {
            SetPlayerColor(playerid,0xFFFFFF00);
            WantedPoints[playerid] = PlayerInfo[playerid][pWantedLevel];
            SetPlayerCriminal(playerid, 255, PlayerInfo[playerid][pCrimeReason]);
        }

        if(strlen(INI_String("ERP/Users/Aliases/alias.txt", playersip)) == 0)
        {
            INI_WriteString("ERP/Users/Aliases/alias.txt", playersip, playername2);
        }
        else
        {
            if( strfind( INI_String("LARP/Users/Aliases/alias.txt", playersip), playername2, true) == -1 )
            {
                format(string,sizeof(string),"%s, %s", INI_String("ERP/Users/Aliases/alias.txt",playersip), playername2);
                INI_WriteString("ERP/Users/Aliases/alias.txt", playersip, string);
            }
        }

        new y, m, d;
        new h,mi,s;
        getdate(y,m,d);
        gettime(h,mi,s);
        format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has logged in under IP %s.",d,m,y,h,mi,s,playername2,playersip);
        LoginLog(string);
    }
    return 1;
}
Reply
#5

Anyone can help me?
Reply
#6

Quote:
Originally Posted by ***Niko***
View Post
Anyone can help me?
I'm currently looking for you, to see if I can find a error, but I have to say that I don't use that
Ini system so I can't test it for you but i will try to find the problem.

I'll get back to you in a couple of minutes.
[To be continued]
Reply
#7

Okay, I can't find any missing brackets in this routine,
Can you empty the routine's one by one?

for example first try it like this:
pawn Code:
//Just cut and paste it in notepad for example
public OnPlayerLogin(playerid,password[])
{
}
//Leaving the code present at the other functions
If it still crashes like this then place back the code in this routine and try with one of the others:
pawn Code:
public OnPlayerRegister(playerid,password[])
{
}
//Leaving the code present at the other functions
This way it may be possible to detect in which function the error occurs.
It's a simple but effective method to trace back a script error, which I used often in the past.
Reply
#8

I don't think brackets are problem,i think i don't open/close what i started so it crashes,that is the question i'm asking brackets are fine,but i think ini open/close definitions i readed tutorial but in this script on player register etc are that strings and i don't think i made it good
Reply
#9

Quote:
Originally Posted by ***Niko***
View Post
I don't think brackets are problem,i think i don't open/close what i started so it crashes,that is the question i'm asking brackets are fine,but i think ini open/close definitions i readed tutorial but in this script on player register etc are that strings and i don't think i made it good
That's what i said in my last message, that it isn't the brackets ,
But can you therefor try to empty the routines one by one to find the part where the compiler crashes, because
an compiler would not crash if you don't open the file because the problem will then occur in the server itself.
(at least normally it will, i don't know how Y_Less made this Ini processor).

If I understand it correctly, you've used a tutorial to make this function, can you send me the link of that
tutorial so I can see if you missed something?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)