[HELP] ysi error ini_open could not find or create file
#1

So when I transfer gamemode to host then I was registering and when I done I go to the server log and that was pop up

ysi error ini_open could not find or create file /Users/John_Speed.ini but I have that folder Users in scriptfiles on my home server everything work's fine
Reply
#2

how you mean but on my home server everything fine please can you help me I don't know what to do anymore? Thanks
Reply
#3

the both are windows host and my home server
Reply
#4

so how I must use it:

pawn Код:
/Users/Name_Lastname.ini

or

Users/Name_Lastname.ini
Reply
#5

like this or. I make this with tutorial which I find on this forum

Users\%s.ini
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
In that case why are you using forward slashes? The directory separator on Windows is "\".
I've never had any problems using forward slash on windows.
Reply
#7

I check with my hoster and he is gonna check that and I don't understand this what you mean? Thanks

pawn Код:
And you've not answered why you're writing a custom (and insecure, and buggy) user system instead of using an existing one you already downloaded.
Reply
#8

beacuse I just following tutorial from this forum for registering and login[Y_Ini] and how you mean I already have download user sytem? Thanks
Reply
#9

so how code should look like for path? Thanks
Reply
#10

and know how can I make that when player finish register then his file was write to that folder I mean what should I put over here instead of ini_open(path(playerid)); Thanks

pawn Код:
new INI:file = INI_Open(Path(playerid));
    INI_SetTag(file,"Player's Data");
    INI_WriteInt(file,"Level",GetPlayerScore(playerid));
    INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][Admin]);
    INI_WriteInt(file,"GSLevel",PlayerInfo[playerid][GameSage]);
    INI_WriteInt(file,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
    INI_WriteInt(file,"Registered",PlayerInfo[playerid][pReg]);
    INI_WriteInt(file,"Spol",PlayerInfo[playerid][pSex]);
    INI_WriteInt(file,"Godine",PlayerInfo[playerid][pAge]);
    INI_WriteInt(file,"Vikendica",PlayerInfo[playerid][pVikendica]);
    INI_WriteInt(file,"DozvolaLetenje",PlayerInfo[playerid][DozvolaLetenje]);
    INI_WriteInt(file,"DozvolaPlovidba",PlayerInfo[playerid][DozvolaPlovidba]);
    INI_WriteInt(file,"DozvolaOruzje",PlayerInfo[playerid][DozvolaOruzje]);
    INI_WriteInt(file,"CDPlayer",PlayerInfo[playerid][pCDPlayer]);
    INI_WriteInt(file,"Stan",PlayerInfo[playerid][pStan]);
    INI_WriteInt(file,"Spawn",PlayerInfo[playerid][pSpawnChange]);
    INI_WriteInt(file,"OrgMjesto",PlayerInfo[playerid][MestoUOrg]);
    INI_WriteFloat(file,"pHCPos_x",PlayerInfo[playerid][pHCPos_x]);
    INI_WriteFloat(file,"pHCPos_y",PlayerInfo[playerid][pHCPos_y]);
    INI_WriteFloat(file,"pHCPos_z",PlayerInfo[playerid][pHCPos_z]);
    INI_WriteFloat(file,"pHCRot_",PlayerInfo[playerid][pHCRot_]);
    INI_WriteInt(file,"Auto",PlayerInfo[playerid][Auto1]);
    INI_WriteInt(file,"Motor",PlayerInfo[playerid][Motor]);
    INI_WriteInt(file,"Letjelica",PlayerInfo[playerid][Letelica]);
    INI_WriteInt(file,"Plovilo",PlayerInfo[playerid][Plovilo]);
    INI_WriteInt(file,"Biciklo",PlayerInfo[playerid][Biciklo]);
    INI_WriteInt(file,"Reket",PlayerInfo[playerid][Reket]);
    INI_WriteInt(file,"KaznaRadar",PlayerInfo[playerid][KaznaRadar]);
    INI_WriteInt(file,"Hotdogova",PlayerInfo[playerid][Hotdog]);
    INI_WriteInt(file,"Hotel",PlayerInfo[playerid][Hotel]);
    INI_WriteInt(file,"RentaHotel",PlayerInfo[playerid][RentaHotel]);
    INI_WriteInt(file,"VoziloKreirano",PlayerInfo[playerid][VoziloKreirano]);
    INI_WriteInt(file,"MotorKreiran",PlayerInfo[playerid][MotorKreiran]);
    INI_WriteInt(file,"LetjelicaKreirana",PlayerInfo[playerid][LetjelicaKreirana]);
    INI_WriteInt(file,"PloviloKreirano",PlayerInfo[playerid][PloviloKreirano]);
    INI_WriteInt(file,"BicikloKreirano",PlayerInfo[playerid][BicikloKreirano]);
    INI_WriteInt(file,"BicikloZakljucano",PlayerInfo[playerid][BicikloZakljucano]);
    INI_WriteInt(file,"VoziloZakljucano",PlayerInfo[playerid][VoziloZakljucano]);
    INI_WriteInt(file,"MotorZakljucan",PlayerInfo[playerid][MotorZakljucan]);
    INI_WriteInt(file,"PloviloZakljucano",PlayerInfo[playerid][PloviloZakljucano]);
    INI_WriteInt(file,"LetjelicaZakljucana",PlayerInfo[playerid][LetjelicaZakljucana]);
    INI_WriteInt(file,"KucnoKreirano",PlayerInfo[playerid][KucnoKreirano]);
    INI_WriteInt(file,"PrimioPayDayova",PlayerInfo[playerid][PrimioPayDayova]);
    INI_WriteInt(file,"AktivnostStaff",PlayerInfo[playerid][AktivnostStaff]);
    INI_WriteInt(file,"MestoAdmina",PlayerInfo[playerid][MestoAdmina]);
    INI_WriteInt(file,"MestoGS",PlayerInfo[playerid][MestoGS]);
    INI_WriteString(file,"BanRazlog",PlayerInfo[playerid][BanRazlog]);
    INI_WriteInt(file,"Offbanan",PlayerInfo[playerid][Offbanan]);
    INI_WriteInt(file,"Vozacka",PlayerInfo[playerid][VozackaDozvola]);
    INI_WriteString(file,"ZadnjaAktivnost",PlayerInfo[playerid][ZadnjaAktivnost]);
    INI_WriteInt(file,"Mobitel",PlayerInfo[playerid][pPnumber]);
    INI_WriteInt(file,"Char",PlayerInfo[playerid][pChar]);
    INI_WriteInt(file,"Podrijetlo",PlayerInfo[playerid][pOrigin]);
    INI_WriteInt(file,"Utisan",PlayerInfo[playerid][pMuted]);
    INI_WriteInt(file,"Respekti",PlayerInfo[playerid][pExp]);
    INI_WriteInt(file,"Novac",GetPlayerMoney(playerid));
    INI_WriteInt(file,"Banka",PlayerInfo[playerid][pAccount]);
    INI_WriteInt(file,"Kredito",PlayerInfo[playerid][IznosRate]);
    INI_WriteInt(file,"Kreditona",PlayerInfo[playerid][PreostaloZaOtplatu]);
    INI_WriteInt(file,"Zlocini",PlayerInfo[playerid][pCrimes]);
    INI_WriteInt(file,"Ubojstva",PlayerInfo[playerid][pKills]);
    INI_WriteInt(file,"Ubijenputa",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(file,"Uhicen",PlayerInfo[playerid][pArrested]);
    INI_WriteInt(file,"WantedSmrti",PlayerInfo[playerid][pWantedDeaths]);
    INI_WriteInt(file,"Imenik",PlayerInfo[playerid][pPhoneBook]);
    INI_WriteInt(file,"Posao",PlayerInfo[playerid][Posao]);
    INI_WriteInt(file,"PayCheck",PlayerInfo[playerid][pPayCheck]);
    INI_WriteInt(file,"HeadValue",PlayerInfo[playerid][pHeadValue]);
    INI_WriteInt(file,"Zatvoren",PlayerInfo[playerid][Zatvoren]);
    INI_WriteInt(file,"Zatvorenna",PlayerInfo[playerid][pJailTime]);
    INI_WriteInt(file,"Upozorenja",PlayerInfo[playerid][Opomenut]);
    INI_WriteInt(file,"Materijali",PlayerInfo[playerid][pMats]);
    INI_WriteInt(file,"Lider",PlayerInfo[playerid][Lider]);
    INI_WriteInt(file,"Clan",PlayerInfo[playerid][Clan]);
    INI_WriteInt(file,"FClan",PlayerInfo[playerid][pFMember]);
    INI_WriteInt(file,"Rank",PlayerInfo[playerid][pRank]);
    INI_WriteInt(file,"ContractTime",PlayerInfo[playerid][PosaoUgovor]);
    INI_WriteInt(file,"Tutorial",PlayerInfo[playerid][pTut]);
    INI_WriteInt(file,"Detskill",PlayerInfo[playerid][pDetSkill]);
    INI_WriteInt(file,"Sexskill",PlayerInfo[playerid][pSexSkill]);
    INI_WriteInt(file,"Lawskill",PlayerInfo[playerid][pLawSkill]);
    INI_WriteInt(file,"Mechskill",PlayerInfo[playerid][pMechSkill]);
    INI_WriteInt(file,"Newsskill",PlayerInfo[playerid][pNewsSkill]);
    INI_WriteFloat(file,"pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);
    GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
    INI_WriteFloat(file,"pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);
    INI_WriteInt(file,"Int",PlayerInfo[playerid][pInt]);
    INI_WriteInt(file,"Local",PlayerInfo[playerid][pLocal]);
    INI_WriteInt(file,"Team",PlayerInfo[playerid][pTeam]);
    INI_WriteInt(file,"Model",PlayerInfo[playerid][pModel]);
    INI_WriteInt(file,"Kuca",PlayerInfo[playerid][pPhousekey1]);
    INI_WriteInt(file,"Firma",PlayerInfo[playerid][pPbizkey]);
    INI_WriteInt(file,"Firma1",PlayerInfo[playerid][pPsiskey]);
    INI_WriteInt(file,"VW",PlayerInfo[playerid][pVW]);
    INI_WriteInt(file,"Kredit",PlayerInfo[playerid][pKredit]);
    INI_WriteInt(file,"Donator",PlayerInfo[playerid][Donator]);
    if((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
    {
        PlayerInfo[playerid][pPos_x] = 1684.9;
        PlayerInfo[playerid][pPos_y] = -2244.5;
        PlayerInfo[playerid][pPos_z] = 13.5;
    }
    INI_WriteFloat(file,"Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);
    INI_WriteFloat(file,"Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);
    INI_WriteFloat(file,"Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);
    INI_WriteInt(file,"Vjencan",PlayerInfo[playerid][pMarried]);
    INI_WriteString(file,"VjencanZa",PlayerInfo[playerid][pMarriedTo]);
    INI_WriteInt(file,"Zavezan",PlayerInfo[playerid][Zavezan]);
    INI_WriteInt(file,"Naocale",Dzep[playerid][xNaocare]);
    INI_WriteInt(file,"Kokica",Dzep[playerid][xKoka]);
    INI_WriteInt(file,"Sjemena",Dzep[playerid][xSemena]);
    INI_WriteInt(file,"Drugs",Dzep[playerid][xDroga]);
    INI_WriteInt(file,"Drogica",Stvari[playerid][zDroga]);
    INI_WriteInt(file,"Pizza",Stvari[playerid][zPizza]);
    INI_WriteInt(file,"Koksica",Stvari[playerid][zKoka]);
    INI_WriteInt(file,"Sjemenica",Stvari[playerid][zSemena]);
    INI_WriteInt(file,"Oruzjana",Stvari[playerid][zGDOruzje]);
    INI_WriteInt(file,"ProdajaOruzja",Stvari[playerid][zGDProdaja]);
    INI_WriteInt(file,"Uzica",Dzep[playerid][xUze]);
    INI_WriteInt(file,"Uze",Stvari[playerid][zUze]);
    INI_WriteInt(file,"Ciga",Dzep[playerid][xCigare]);
    INI_WriteInt(file,"Nick",PlayerInfo[playerid][Banovan]);
    INI_WriteInt(file,"Bannick",PlayerInfo[playerid][Bannick]);
    INI_WriteInt(file,"Cigara",Stvari[playerid][zCigare]);
    INI_WriteInt(file,"Upaljenko",Dzep[playerid][xUpaljac]);
    INI_WriteInt(file,"PayPo",PlayerInfo[playerid][pMinute]);
    INI_WriteInt(file,"RacunMobitel",PlayerInfo[playerid][RacunMobitel]);
    INI_WriteInt(file,"hHeal",PlayerInfo[playerid][hHealH]);
    INI_WriteInt(file,"Harmour",PlayerInfo[playerid][hArmourH]);
    INI_WriteInt(file,"TimUgovor",PlayerInfo[playerid][TimUgovor]);
    INI_WriteInt(file,"KaznaUgovor",PlayerInfo[playerid][KaznaUgovor]);
    INI_WriteInt(file,"MozeDaGasiMobilni",PlayerInfo[playerid][MozeDaGasiMobilni]);
    INI_WriteInt(file,"DetektivVrijeme",PlayerInfo[playerid][DetektivVreme]);
    INI_WriteInt(file,"DzVreme",PlayerInfo[playerid][DzeparosVreme]);
    INI_WriteInt(file,"KrVreme",PlayerInfo[playerid][KradljivacVreme]);
    INI_WriteInt(file,"MehVreme",PlayerInfo[playerid][MehanicarOdvoz]);
    INI_WriteInt(file,"ADvreme",PlayerInfo[playerid][AdTimer]);
    INI_WriteInt(file,"Kapa",PlayerInfo[playerid][pKapa]);
    INI_WriteInt(file,"Kosa",PlayerInfo[playerid][pKosa]);
    INI_WriteInt(file,"Kaciga",PlayerInfo[playerid][Kaciga]);
    INI_WriteInt(file,"Borbenistil",PlayerInfo[playerid][BorbeniStil]);
    INI_Close(file);
    SacuvajAcc(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)