Daten werden nicht mehr eingetragen...

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo Com,
    ich habe mein acc system über dini ,
    ich habe gemacht das we man sich ne uhr kauft im der account ini die 0 erstetzt wird also zur 1 aber meine ini speichert das nich mehr

    ↓Das ist der Youtube Channel von mir und meinen Kollegen↓



    Sa-Mp Server [Im Aufbau/Beta]
    128.65.216.200:7777

  • ja da ändert sich ja garnichts mehr also bei allen befehlen.....
    liegt das an einem befehl ??


    z.B
    PlayerInfo[playerid][Uhr] = 1;
    oder
    PlayerInfo[playerid][Skin] = 2;


    aber in meiner ini
    ändert sich nichts auser das pw am anfang


    Passwort=1234
    Admin=1339
    Geld=7000
    Bank=500
    Skin=230
    fskin=0
    Level=1
    ErfahrungsP=0
    Leader=0
    Beruf=0
    Nebenjob=0
    Wanted=0
    Gebannt=0
    Rank=0
    Register=0
    Geschlecht=0
    Alter=0
    Tode=0
    Verbrechen=0
    Perso=0
    CarL=0
    BikeL=0
    FlyL=0
    WaffenL=0
    PayTime=0
    Inventar=0
    Uhr=0

    ↓Das ist der Youtube Channel von mir und meinen Kollegen↓



    Sa-Mp Server [Im Aufbau/Beta]
    128.65.216.200:7777

    Einmal editiert, zuletzt von EliteBread ()

  • dein System wo du die Spieler speicherst dazu gibt es doch nen stock oder nen Public

  • das????


    public Update(playerid)
    {
    if(IsPlayerConnected(playerid) && Eingeloggt[playerid] == 1)
    {
    new string[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"/Accounts/%s.ini",name);
    PlayerInfo[playerid][Geld] = GetPlayerMoney(playerid);
    PlayerInfo[playerid][Level] = GetPlayerScore(playerid);
    PlayerInfo[playerid][Wanted] = GetPlayerWantedLevel(playerid);
    dini_IntSet(string,"Admin",PlayerInfo[playerid][Admin]);
    dini_IntSet(string,"Geld",PlayerInfo[playerid][Geld]);
    dini_IntSet(string,"Bank",PlayerInfo[playerid][Bank]);
    dini_IntSet(string,"Skin",PlayerInfo[playerid][Skin]);
    dini_IntSet(string,"fskin",PlayerInfo[playerid][fskin]);
    dini_IntSet(string,"Level",PlayerInfo[playerid][Level]);
    dini_IntSet(string,"ErfahrungsP",PlayerInfo[playerid][ErfahrungsP]);
    dini_IntSet(string,"Leader",PlayerInfo[playerid][Leader]);
    dini_IntSet(string,"Beruf",PlayerInfo[playerid][Beruf]);
    dini_IntSet(string,"Nebenjob",PlayerInfo[playerid][Nebenjob]);
    dini_IntSet(string,"Wanted",PlayerInfo[playerid][Wanted]);
    dini_IntSet(string,"Gebannt",PlayerInfo[playerid][Gebannt]);
    dini_IntSet(string,"Rank",PlayerInfo[playerid][Rank]);
    dini_IntSet(string,"Register",PlayerInfo[playerid][Register]);
    dini_IntSet(string,"Geschlecht",PlayerInfo[playerid][Geschlecht]);
    dini_IntSet(string,"Alter",PlayerInfo[playerid][Alter]);
    dini_IntSet(string,"Tode",PlayerInfo[playerid][Tode]);
    dini_IntSet(string,"Verbrechen",PlayerInfo[playerid][Verbrechen]);
    dini_IntSet(string,"Perso",PlayerInfo[playerid][Perso]);
    dini_IntSet(string,"CarL",PlayerInfo[playerid][CarL]);
    dini_IntSet(string,"BikeL",PlayerInfo[playerid][BikeL]);
    dini_IntSet(string,"FlyL",PlayerInfo[playerid][FlyL]);
    dini_IntSet(string,"WaffenL",PlayerInfo[playerid][WaffenL]);
    dini_IntSet(string,"PayTime",PlayerInfo[playerid][PayTime]);
    dini_IntSet(string,"Inventar",PlayerInfo[playerid][Inventar]);
    dini_IntSet(string,"Uhr",PlayerInfo[playerid][Uhr]);
    }
    return 1;
    }

    ↓Das ist der Youtube Channel von mir und meinen Kollegen↓



    Sa-Mp Server [Im Aufbau/Beta]
    128.65.216.200:7777

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • dini_Create(string);
    dini_Set(string,"Passwort",inputtext);
    dini_IntSet(string,"Admin",0);
    dini_IntSet(string,"Geld",7000);
    dini_IntSet(string,"Bank",500);
    dini_IntSet(string,"Skin",230);
    dini_IntSet(string,"fskin",0);
    dini_IntSet(string,"Level",1);
    dini_IntSet(string,"ErfahrungsP",0);
    dini_IntSet(string,"Leader",0);
    dini_IntSet(string,"Beruf",0);
    dini_IntSet(string,"Nebenjob",0);
    dini_IntSet(string,"Wanted",0);
    dini_IntSet(string,"Gebannt",0);
    dini_IntSet(string,"Rank",0);
    dini_IntSet(string,"Register",0);
    dini_IntSet(string,"Geschlecht",0);
    dini_IntSet(string,"Alter",0);
    dini_IntSet(string,"Tode",0);
    dini_IntSet(string,"Verbrechen",0);
    dini_IntSet(string,"Perso",0);
    dini_IntSet(string,"CarL",0);
    dini_IntSet(string,"BikeL",0);
    dini_IntSet(string,"FlyL",0);
    dini_IntSet(string,"WaffenL",0);
    dini_IntSet(string,"PayTime",0);
    dini_IntSet(string,"Inventar",0);
    dini_IntSet(string,"Uhr",0);


    ResetPlayerMoney(playerid);
    PlayerInfo[playerid][Admin] = dini_Int(string,"Admin");
    PlayerInfo[playerid][Geld] = dini_Int(string,"Geld");
    PlayerInfo[playerid][Bank] = dini_Int(string,"Bank");
    PlayerInfo[playerid][Skin] = dini_Int(string,"Skin");
    PlayerInfo[playerid][fskin] = dini_Int(string,"fskin");
    PlayerInfo[playerid][Level] = dini_Int(string,"Level");
    PlayerInfo[playerid][ErfahrungsP] = dini_Int(string,"ErfahrungsP");
    PlayerInfo[playerid][Leader] = dini_Int(string,"Leader");
    PlayerInfo[playerid][Beruf] = dini_Int(string,"Beruf");
    PlayerInfo[playerid][Nebenjob] = dini_Int(string,"Nebenjob");
    PlayerInfo[playerid][Wanted] = dini_Int(string,"Wanted");
    PlayerInfo[playerid][Gebannt] = dini_Int(string,"Gebannt");
    PlayerInfo[playerid][Rank] = dini_Int(string,"Rank");
    PlayerInfo[playerid][Register] = dini_Int(string,"Register");
    PlayerInfo[playerid][Geschlecht] = dini_Int(string,"Geschlecht");
    PlayerInfo[playerid][Alter] = dini_Int(string,"Alter");
    PlayerInfo[playerid][Tode] = dini_Int(string,"Tode");
    PlayerInfo[playerid][Verbrechen] = dini_Int(string,"Verbrechen");
    PlayerInfo[playerid][CarL] = dini_Int(string,"CarL");
    PlayerInfo[playerid][BikeL] = dini_Int(string,"BikeL");
    PlayerInfo[playerid][FlyL] = dini_Int(string,"FlyL");
    PlayerInfo[playerid][WaffenL] = dini_Int(string,"WaffenL");
    PlayerInfo[playerid][PayTime] = dini_Int(string,"PayTime");
    PlayerInfo[playerid][Inventar] = dini_Int(string,"Inventar");
    PlayerInfo[playerid][Uhr] = dini_Int(string,"Uhr");


    dini_IntSet(string,"Admin",PlayerInfo[playerid][Admin]);
    dini_IntSet(string,"Geld",PlayerInfo[playerid][Geld]);
    dini_IntSet(string,"Bank",PlayerInfo[playerid][Bank]);
    dini_IntSet(string,"Skin",PlayerInfo[playerid][Skin]);
    dini_IntSet(string,"fskin",PlayerInfo[playerid][fskin]);
    dini_IntSet(string,"Level",PlayerInfo[playerid][Level]);
    dini_IntSet(string,"ErfahrungsP",PlayerInfo[playerid][ErfahrungsP]);
    dini_IntSet(string,"Leader",PlayerInfo[playerid][Leader]);
    dini_IntSet(string,"Beruf",PlayerInfo[playerid][Beruf]);
    dini_IntSet(string,"Nebenjob",PlayerInfo[playerid][Nebenjob]);
    dini_IntSet(string,"Wanted",PlayerInfo[playerid][Wanted]);
    dini_IntSet(string,"Gebannt",PlayerInfo[playerid][Gebannt]);
    dini_IntSet(string,"Rank",PlayerInfo[playerid][Rank]);
    dini_IntSet(string,"Register",PlayerInfo[playerid][Register]);
    dini_IntSet(string,"Geschlecht",PlayerInfo[playerid][Geschlecht]);
    dini_IntSet(string,"Alter",PlayerInfo[playerid][Alter]);
    dini_IntSet(string,"Tode",PlayerInfo[playerid][Tode]);
    dini_IntSet(string,"Verbrechen",PlayerInfo[playerid][Verbrechen]);
    dini_IntSet(string,"Perso",PlayerInfo[playerid][Perso]);
    dini_IntSet(string,"CarL",PlayerInfo[playerid][CarL]);
    dini_IntSet(string,"BikeL",PlayerInfo[playerid][BikeL]);
    dini_IntSet(string,"FlyL",PlayerInfo[playerid][FlyL]);
    dini_IntSet(string,"WaffenL",PlayerInfo[playerid][WaffenL]);
    dini_IntSet(string,"PayTime",PlayerInfo[playerid][PayTime]);
    dini_IntSet(string,"Inventar",PlayerInfo[playerid][Inventar]);
    dini_IntSet(string,"Uhr",PlayerInfo[playerid][Uhr]);



    das ist alles mit dini_int

    ↓Das ist der Youtube Channel von mir und meinen Kollegen↓



    Sa-Mp Server [Im Aufbau/Beta]
    128.65.216.200:7777

  • das ist alles


    public OnPlayerDisconnect(playerid, reason)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && Eingeloggt[i] == 1)
    {
    Update(playerid);
    Eingeloggt[playerid] = 0;
    }
    }
    new spielername[24];
    new string[64];
    GetPlayerName(playerid,spielername,24);
    format(string,64,"{7F7F7F}%s {FFFFFF}hat den Server {E50000}verlassen.",spielername);
    SendAdminMessage(Weiß,string);
    return 1;
    }

    ↓Das ist der Youtube Channel von mir und meinen Kollegen↓



    Sa-Mp Server [Im Aufbau/Beta]
    128.65.216.200:7777

    Einmal editiert, zuletzt von EliteBread ()

  • public OnPlayerDisconnect(playerid, reason)
    {
    if(Eingeloggt[playerid] == 1)
    Update(playerid);
    Eingeloggt[playerid] = 0;
    new spielername[24];
    new string[64];
    GetPlayerName(playerid,spielername,24);
    format(string,64,"{7F7F7F}%s {FFFFFF}hat den Server {E50000}verlassen.",spielername);
    SendAdminMessage(Weiß,string);
    return 1;
    }
    Spart Recourcen

  • public Update(playerid)
    {
    if(IsPlayerConnected(playerid) && Eingeloggt[playerid] == 1)
    {
    new string[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"/Accounts/%s.ini",name);
    PlayerInfo[playerid][Geld] = GetPlayerMoney(playerid);
    PlayerInfo[playerid][Level] = GetPlayerScore(playerid);
    PlayerInfo[playerid][Wanted] = GetPlayerWantedLevel(playerid);
    dini_IntSet(string,"Admin",PlayerInfo[playerid][Admin]);
    dini_IntSet(string,"Geld",PlayerInfo[playerid][Geld]);
    dini_IntSet(string,"Bank",PlayerInfo[playerid][Bank]);
    dini_IntSet(string,"Skin",PlayerInfo[playerid][Skin]);
    dini_IntSet(string,"fskin",PlayerInfo[playerid][fskin]);
    dini_IntSet(string,"Level",PlayerInfo[playerid][Level]);
    dini_IntSet(string,"ErfahrungsP",PlayerInfo[playerid][ErfahrungsP]);
    dini_IntSet(string,"Leader",PlayerInfo[playerid][Leader]);
    dini_IntSet(string,"Beruf",PlayerInfo[playerid][Beruf]);
    dini_IntSet(string,"Nebenjob",PlayerInfo[playerid][Nebenjob]);
    dini_IntSet(string,"Wanted",PlayerInfo[playerid][Wanted]);
    dini_IntSet(string,"Gebannt",PlayerInfo[playerid][Gebannt]);
    dini_IntSet(string,"Rank",PlayerInfo[playerid][Rank]);
    dini_IntSet(string,"Register",PlayerInfo[playerid][Register]);
    dini_IntSet(string,"Geschlecht",PlayerInfo[playerid][Geschlecht]);
    dini_IntSet(string,"Alter",PlayerInfo[playerid][Alter]);
    dini_IntSet(string,"Tode",PlayerInfo[playerid][Tode]);
    dini_IntSet(string,"Verbrechen",PlayerInfo[playerid][Verbrechen]);
    dini_IntSet(string,"Perso",PlayerInfo[playerid][Perso]);
    dini_IntSet(string,"CarL",PlayerInfo[playerid][CarL]);
    dini_IntSet(string,"BikeL",PlayerInfo[playerid][BikeL]);
    dini_IntSet(string,"FlyL",PlayerInfo[playerid][FlyL]);
    dini_IntSet(string,"WaffenL",PlayerInfo[playerid][WaffenL]);
    dini_IntSet(string,"PayTime",PlayerInfo[playerid][PayTime]);
    dini_IntSet(string,"Inventar",PlayerInfo[playerid][Inventar]);
    dini_IntSet(string,"Uhr",PlayerInfo[playerid][Uhr]);
    }
    return 1;
    }

    ↓Das ist der Youtube Channel von mir und meinen Kollegen↓



    Sa-Mp Server [Im Aufbau/Beta]
    128.65.216.200:7777

  • Update(i);
    Versuchs mal.
    Ich verstehe immernoch deine Lage nicht.

  • Also ich weiß nicht wieso aber der ändert die daten nicht mehr zb alle sind von anfang an beruf 0 jetzt setzte ich ihn per befehl auf 1 das ist dan auch so aber wen er conectet ist es wieder auf 0 weil es sich in der ini nicht geändert hat

    ↓Das ist der Youtube Channel von mir und meinen Kollegen↓



    Sa-Mp Server [Im Aufbau/Beta]
    128.65.216.200:7777

  • stock Speichern(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new string[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"/Accounts/%s.ini",name);
    PlayerInfo[playerid][Geld] = GetPlayerMoney(playerid);
    PlayerInfo[playerid][Level] = GetPlayerScore(playerid);
    PlayerInfo[playerid][Wanted] = GetPlayerWantedLevel(playerid);
    dini_IntSet(string,"Admin",PlayerInfo[playerid][Admin]);
    dini_IntSet(string,"Geld",PlayerInfo[playerid][Geld]);
    dini_IntSet(string,"Bank",PlayerInfo[playerid][Bank]);
    dini_IntSet(string,"Skin",PlayerInfo[playerid][Skin]);
    dini_IntSet(string,"fskin",PlayerInfo[playerid][fskin]);
    dini_IntSet(string,"Level",PlayerInfo[playerid][Level]);
    dini_IntSet(string,"ErfahrungsP",PlayerInfo[playerid][ErfahrungsP]);
    dini_IntSet(string,"Leader",PlayerInfo[playerid][Leader]);
    dini_IntSet(string,"Beruf",PlayerInfo[playerid][Beruf]);
    dini_IntSet(string,"Nebenjob",PlayerInfo[playerid][Nebenjob]);
    dini_IntSet(string,"Wanted",PlayerInfo[playerid][Wanted]);
    dini_IntSet(string,"Gebannt",PlayerInfo[playerid][Gebannt]);
    dini_IntSet(string,"Rank",PlayerInfo[playerid][Rank]);
    dini_IntSet(string,"Register",PlayerInfo[playerid][Register]);
    dini_IntSet(string,"Geschlecht",PlayerInfo[playerid][Geschlecht]);
    dini_IntSet(string,"Alter",PlayerInfo[playerid][Alter]);
    dini_IntSet(string,"Tode",PlayerInfo[playerid][Tode]);
    dini_IntSet(string,"Verbrechen",PlayerInfo[playerid][Verbrechen]);
    dini_IntSet(string,"Perso",PlayerInfo[playerid][Perso]);
    dini_IntSet(string,"CarL",PlayerInfo[playerid][CarL]);
    dini_IntSet(string,"BikeL",PlayerInfo[playerid][BikeL]);
    dini_IntSet(string,"FlyL",PlayerInfo[playerid][FlyL]);
    dini_IntSet(string,"WaffenL",PlayerInfo[playerid][WaffenL]);
    dini_IntSet(string,"PayTime",PlayerInfo[playerid][PayTime]);
    dini_IntSet(string,"Inventar",PlayerInfo[playerid][Inventar]);
    dini_IntSet(string,"Uhr",PlayerInfo[playerid][Uhr]);
    }
    return 1;
    }


    Unter Disconnect


    Speichern(playerid);