Beiträge von EliteBread

    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

    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 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;
    }

    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

    Hallo,
    wie geht die abfrage vom wetter weiß es leider nicht ... besser gesagt vergessen :P



    dcmd_setweather(playerid,params[])
    {
    if(PlayerInfo[playerid][Admin]>= 3)
    {
    new Weather, aname[MAX_PLAYER_NAME];
    new string[128], string2[128];
    if(sscanf(params,"ud"))
    {
    SendClientMessage(playerid,Gelb,"Benutze: /setweather [ID]");
    return 1;
    }
    else
    {
    GetPlayerName(playerid,aname,sizeof(aname));
    format(string,sizeof(string),"Du hast das Wetter geändert");
    SendClientMessage(playerid,Rot,string);
    format(string2,sizeof(string2),"Admin %s hat das Wetter geändert",aname);
    SendClientMessageToAll(HellBlau,string2);
    SetWeather(Weather);
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist kein Admin");
    return 1;
    }
    }

    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;
    }

    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

    if(pSpeedoOn[playerid] == 0)
    {
    pSpeedo[playerid][0] = TextDrawCreate(536.000000,388.000000,"Carname");
    TextDrawBackgroundColor(pSpeedo[playerid][0],0x000000ff);
    TextDrawUseBox(pSpeedo[playerid][0],1);
    TextDrawBoxColor(pSpeedo[playerid][0],0x00000099);
    TextDrawTextSize(pSpeedo[playerid][0],630.000000,42.000000);
    TextDrawAlignment(pSpeedo[playerid][0],3);
    TextDrawFont(pSpeedo[playerid][0],3);
    TextDrawLetterSize(pSpeedo[playerid][0],0.299999,1.100000);
    TextDrawColor(pSpeedo[playerid][0],0xffffffff);
    TextDrawSetOutline(pSpeedo[playerid][0],1);
    TextDrawSetProportional(pSpeedo[playerid][0],1);
    TextDrawSetShadow(pSpeedo[playerid][0],1);


    pSpeedo[playerid][1] = TextDrawCreate(536.000000,401.000000,"Km/h: ");
    TextDrawBackgroundColor(pSpeedo[playerid][1],0x000000ff);
    TextDrawUseBox(pSpeedo[playerid][1],1);
    TextDrawBoxColor(pSpeedo[playerid][1],0x00000099);
    TextDrawTextSize(pSpeedo[playerid][1],630.000000,42.000000);
    TextDrawAlignment(pSpeedo[playerid][1],0);
    TextDrawFont(pSpeedo[playerid][1],1);
    TextDrawLetterSize(pSpeedo[playerid][1],0.399999,1.100000);
    TextDrawColor(pSpeedo[playerid][1],0xffffffff);
    TextDrawSetOutline(pSpeedo[playerid][1],1);
    TextDrawSetProportional(pSpeedo[playerid][1],1);
    TextDrawSetShadow(pSpeedo[playerid][1],1);

    pSpeedo[playerid][2] = TextDrawCreate(536.000000,414.000000,"Tank: ");
    TextDrawBackgroundColor(pSpeedo[playerid][2],0x000000ff);
    TextDrawUseBox(pSpeedo[playerid][2],1);
    TextDrawBoxColor(pSpeedo[playerid][2],0x00000066);
    TextDrawTextSize(pSpeedo[playerid][2],630.000000,4.000000);
    TextDrawAlignment(pSpeedo[playerid][2],0);
    TextDrawFont(pSpeedo[playerid][2],1);
    TextDrawLetterSize(pSpeedo[playerid][2],0.399999,1.000000);
    TextDrawColor(pSpeedo[playerid][2],0xffffffff);
    TextDrawSetOutline(pSpeedo[playerid][2],1);
    TextDrawSetProportional(pSpeedo[playerid][2],1);
    TextDrawSetShadow(pSpeedo[playerid][2],1);


    pSpeedo[playerid][3] = TextDrawCreate(536.000000,426.000000,"Zustand: ");
    TextDrawBackgroundColor(pSpeedo[playerid][3],0x000000ff);
    TextDrawUseBox(pSpeedo[playerid][3],1);
    TextDrawBoxColor(pSpeedo[playerid][3],0x00000066);
    TextDrawTextSize(pSpeedo[playerid][3],630.000000,1.000000);
    TextDrawAlignment(pSpeedo[playerid][3],0);
    TextDrawFont(pSpeedo[playerid][3],1);
    TextDrawLetterSize(pSpeedo[playerid][3],0.299999,1.100000);
    TextDrawColor(pSpeedo[playerid][3],0xffffffff);
    TextDrawSetOutline(pSpeedo[playerid][3],1);
    TextDrawSetProportional(pSpeedo[playerid][3],1);
    TextDrawSetShadow(pSpeedo[playerid][3],1);









    pSpeedoOn[playerid] = 1;


    der code teil mit den Textdraws

    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(3146) : error 076: syntax error in the expression, or invalid function call
    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(3148) : error 028: invalid subscript (not an array or too many subscripts): "HomeIP"
    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(3148) : warning 215: expression has no effect
    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(3148) : error 001: expected token: ";", but found "]"
    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(3148) : error 029: invalid expression, assumed zero
    C:\Users\EliteBread\Desktop\Spiele usw\Andere Programme\Daten\Selfmade Script\gamemodes\Bread.pwn(3148) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.


    public wechsel(playerid)
    {
    if(wechsel == 0)
    {
    TextDrawShowForPlayer(playerid,HomeIP[playerid][1]);
    TextDrawHideForPlayer(playerid,TeamS);
    wechsel = 1;
    }
    else
    {
    TextDrawShowForPlayer(playerid,TeamS);
    TextDrawHideForPlayer(playerid,HomeIP[playerid][1]);
    wechsel = 0;
    }
    return 1;
    }