Bug beim Tutorial

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 Breadfish-Community,


    derzeitig bin ich mein Script was auf Dini war jetzt in MySQL umzuschreiben was auch gut geklappt da ich ja auch MySQL lerne...
    Aber das Problem ist warum ich euch um Hilfe bitte ist, wenn ich mich einlogge kommt immer wieder das Tutorial ich muss mein Geschlecht etc angeben muss...
    Wie bekomm ich das hin das es in die Datenbank eingefügt wird das ich das Tutorial nicht immer wieder erneut anschauen muss?


    Und meine 2. Frage wäre ich bräuchte Hilfe beim '/makeleader' Befehl...
    Wenn ich mich in eine andere Fraktion einladen möchte kommt, das ich angeblich schon in eine Fraktion wäre...


    Hier der Code:

    if(strcmp(cmd, "/makeleader", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] < 2000)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Dazu bist du nicht befugt!");
    return 1;
    }
    if(AdminDuty[playerid] == 1)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "Benutze: {E30909}/makeleader{FFFFFF} [playerid/Name] [Nummer(1-25)]");
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_WHITE, "[ {E3CD09}StaatsFraktionen{FFFFFF} ]: (1) LSPD | (2) FBI | (3) Army | (4) Medic | (22) LVPD | (7) Präsi | (13{FFFFFF}) SFPD");
    SendClientMessage(playerid, COLOR_WHITE, "[ {E3CD09}StaatsFraktionen{FFFFFF} ]: (9) CNN | (11) Fahrlehrer | (24) O-Amt | (25) Feuerwehr");
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_WHITE, "[ {E3CD09}Gang/MafiaFraktionen{FFFFFF} ]: (5) LCN | (6) Yakuza | (14) Grove-Street | (15) Dillimore Devils ");
    SendClientMessage(playerid, COLOR_WHITE, "[ {E3CD09}Gang/MafiaFraktionen{FFFFFF} ]: (16) Vagos |(17) Aztecas | (18) Vatos Locos | (19) Ballas | (20) Terror");
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_WHITE, "[ {E3CD09}OrganisationFraktionen{FFFFFF} ]: (8) Hitman | (12) Hacker | (21) Wheelman | (10)Trucker GmBH");
    return 1;
    }
    new para1;
    new level;
    para1 = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    level = strval(tmp);
    if(level > 25 || level < 0) { SendClientMessage(playerid, COLOR_WHITE, " Geh nicht tiefer als Nummer {E30909}0{FFFFFF}, oder höher als Nummer {E30909}25{FFFFFF}!"); return 1; }
    if (PlayerInfo[playerid][pAdmin] == 2000 || PlayerInfo[playerid][pAdmin] >= 5000)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID)
    {
    if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Player ist bereits/noch in einer Fraktion!");
    return 1;
    }
    if(PlayerInfo[playerid][pFrakSperre] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Dieser Spieler besitzt eine aktive Fraktionssperre!");
    return 1;
    }
    new ftext[32];
    if(level == 0) { ftext = "Zivilisten"; } else { ftext = Fracs[(level-1)]; }
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), " Du hast %s die Leaderrechte der Fraktion %s gegeben.", giveplayer,ftext);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), " Admin %s hat dich zum Leader von der Fraktion %s ernannt.", sendername,ftext);
    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    SendClientMessage(para1, COLOR_GRAD5, " Du kannst mit /hilfe deine neuen Fraktionsbefehle betrachten");
    SendClientMessage(para1, COLOR_GRAD5, " Vergiss nicht: Du hast nun 4 Wochen Pflicht Leader in dieser Fraktion zu bleiben!");
    SendClientMessage(para1, COLOR_GRAD5, " Wenn du vor Ablauf der Frist rausgeworfen wirst, musst du die Rest der Zeit Zivilist bleiben.");
    SetPlayerSpawn(playerid);
    gTeam[para1] = 0;
    PlayerInfo[para1][pTeam] = 0;
    PlayerInfo[para1][pRank] = 6;
    PlayerInfo[para1][pLeader] = level;
    PlayerInfo[para1][pGehalt] = 0;
    new iyear, imonth,iday;
    getdate(iyear, imonth, iday);
    format(string, sizeof(string), "%s[Level:%d] wurde von %s Als Leader der Fraktion %s eingeladen (%d-%d-%d)", giveplayer,PlayerInfo[para1][pLevel],sendername,ftext,imonth,iday,iyear);
    LeaderLog(string);
    if(level == 0)
    {
    gTeam[para1] = 3;
    PlayerInfo[para1][pTeam] = 3;
    PlayerInfo[para1][pMember] = 0;
    PlayerInfo[para1][pRank] = 0;
    //PlayerInfo[para1][pChar] = 0;
    //new rand = random(sizeof(CIV));
    //SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    //PlayerInfo[para1][pModel] = CIV[rand];
    //MedicBill[para1] = 0;
    //SpawnPlayer(para1);
    //SetPlayerSpawn(para1);
    PlayerInfo[playerid][pPos_x] = 1715.3109;
    PlayerInfo[playerid][pPos_y] = -1951.0555;
    PlayerInfo[playerid][pPos_z] = 14.1172;
    }
    else if(level == 1) { PlayerInfo[para1][pChar] = 283; gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } // LOS SANTOS POLICE
    else if(level == 2) { PlayerInfo[para1][pChar] = 165; gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } // SAN FIERRO POLICE
    else if(level == 3) { PlayerInfo[para1][pChar] = 287; gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } // Bundeswehr
    else if(level == 4) { PlayerInfo[para1][pChar] = 275; gTeam[para1] = 4; PlayerInfo[para1][pTeam] = 4; } // Medic
    else if(level == 5) { PlayerInfo[para1][pChar] = 113; } // La Cosa Nostra
    else if(level == 6) { PlayerInfo[para1][pChar] = 120; } // Yakuza
    else if(level == 7) { PlayerInfo[para1][pChar] = 295; } // Mayor
    else if(level == 8) { PlayerInfo[para1][pChar] = 294; } // Hitmans
    else if(level == 9) { PlayerInfo[para1][pChar] = 187; } // CNN
    else if(level == 10) { PlayerInfo[para1][pChar] = 60; } // Trucker GmbH
    else if(level == 11) { PlayerInfo[para1][pChar] = 240; } // Fahrschule
    else if(level == 12) { PlayerInfo[para1][pChar] = 120; } // Fuegos
    else if(level == 13) { PlayerInfo[para1][pChar] = 186; } // Grove Street
    else if(level == 14) { PlayerInfo[para1][pChar] = 103; } // Ballas
    else if(level == 15) { PlayerInfo[para1][pChar] = 247; } // Sf Biker Club
    else if(level == 16) { PlayerInfo[para1][pChar] = 110; } // Los Santos Vagos
    else if(level == 17) { PlayerInfo[para1][pChar] = 115; } // Varios Los Aztecas
    else if(level == 18) { PlayerInfo[para1][pChar] = 19; } // Los Santos Rifa
    else if(level == 19) { PlayerInfo[para1][pChar] = 104; } // Ballas
    else if(level == 20) { PlayerInfo[para1][pChar] = 220; } // Terroristen
    else if(level == 18) { PlayerInfo[para1][pChar] = 283; gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } // LVPD
    else if(level == 23) { PlayerInfo[para1][pChar] = 127; } // russenmafia
    else if(level == 24) { PlayerInfo[para1][pChar] = 71; } // Ordnungsamt
    else if(level == 25) { PlayerInfo[para1][pChar] = 277; } // Feuerwehr
    SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
    SetPlayerSpawn(para1);
    }
    }//not connected
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " ** INFO: Das ist ein Adminbefehl, Du bist nicht befugt!");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "** Du bist nicht im Admindienst!");
    }
    }
    return 1;
    }


    Vielen Dank im Vorraus!


    Lg
    J0a9

  • 1. Suche nach einer Variable die pTut oder so heißt und setzte sie nach dem Tut auf 1.


    zum 2. lösch dies aus deinem Befehl aus:


    if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Player ist bereits/noch in einer Fraktion!");
    return 1;
    }

    Einmal editiert, zuletzt von eLiTe. ()

  • Hallo eLiTe,


    vielen Dank für deine schnelle Antwort!
    Das Tutorialbug besteht immernoch, ich hatte es auch schon vorher auf 1 gesetzt aber es kommt immer wieder es hat sich nichts getan!


    Hier die Code:

    else if(TutTime[i] == 96)
    {
    ClearChatbox(i, 10);
    SetPlayerVirtualWorld(i, 0);
    InterpolateCameraPos(i, 1087.6268, -2197.0964, 172.6539, 2903.7144, -944.1570, 128.0117, 11000);
    InterpolateCameraLookAt(i, 2903.7144, -944.1570, 128.0117, 2902.8171, -944.6023, 127.6017, 11000);
    SetPlayerPos(i, 1310.5079,-1323.7498,38.8812);
    SendClientMessage(i, 0x000000FF, "{808080}.:| {FF0000}Herzlich Willkommen!{808080}|:.");
    SendClientMessage(i, 0x000000FF, " ");
    SendClientMessage(i, 0x000000FF, "{FFFFFF}| Wir heißen dich Recht Herzlich Willkommen bei uns, um dich zurrecht zu finden |");
    SendClientMessage(i, 0x000000FF, "{FFFFFF}| benutze den Befehl /navi. Bei Fragen /sup wir stehen dir jederzeit zur verfügung |");
    SendClientMessage(i, 0x000000FF, "{FFFFFF}| Falls du in eine Fraktion gehen möchtest besuche unser Forum, |");
    SendClientMessage(i, 0x000000FF, "{FFFFFF}| dort kannst du dich falls du Leader werden willst Informiren und dich anschließend bewerben! |");
    SendClientMessage(i, 0x000000FF, "{FFFFFF}| Viel Spaß wünscht dir unser Team! |");
    ClearChatbox(i, 2);
    SendClientMessage(i, COLOR_WHITE," ");
    SendClientMessage(i, COLOR_WHITE," ");
    SendClientMessage(i, COLOR_WHITE," ");
    SendClientMessage(i, COLOR_WHITE," ");
    SendClientMessage(i, COLOR_WHITE," ");
    SendClientMessage(i, COLOR_WHITE," ");
    SendClientMessage(i, COLOR_WHITE," ");
    SendClientMessage(i, COLOR_WHITE," ");
    SendClientMessage(i, COLOR_WHITE," ");
    SendClientMessage(i, COLOR_WHITE," ");
    format(string,sizeof(string),"{FFFF00}Wir begrüßen unserem Neusten Spieler {00FFFF}%s.",SpielerName(i));
    SendClientMessageToAll(COLOR_LIGHTRED,string);
    TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
    gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
    UnFreezePlayer(i);
    SetCameraBehindPlayer(i);
    MedicBill[i] = 0;
    AfterTutorial[i] = 1;
    PlayerInfo[i][pbinimtutorial] = 0;
    SetTimerEx("UnsetAfterTutorial", 2500, false, "i", i);
    SetTimerEx("UnsetFirstSpawn", 20000, false, "i", i);
    AtRegestration[i] = 0;
    SetPlayerPos(i,1715.3109,-1951.0555,14.1172);
    PlayerInfo[i][pStartbonus] = 1;
    //GivePlayerMoney(i,2000);
    if(PlayerInfo[i][pSex] == 2) //Frau
    {
    SetPlayerSkin(i,93);
    }
    if(PlayerInfo[i][pSex] == 1) //Mann
    {
    SetPlayerSkin(i,170);
    }


    }
    }


    Ab da soll es ja ausgeschaltet werden und abgeschaltet sein das ich beim nächsten Login nicht wieder das Tut anschauen muss :D


    Lg
    J0a9

  • Hallo,


    Login:

    if(dialogid == DIALOG_LOGIN)
    {
    if(response && strlen(inputtext) > 0)
    {
    new name[MAX_PLAYER_NAME],query[128],passwort[35];
    GetPlayerName(playerid,name,sizeof(name));
    mysql_escape_string(inputtext,passwort,dbhandle);
    format(query,sizeof(query),"SELECT * FROM accounts WHERE Name='%s' AND Passwort='%s'",name,passwort);
    mysql_function_query(dbhandle,query,true,"LoadPlayer","i",playerid);
    printf("%s hat sich mit seinem Account eingeloggt.",string);
    }
    else
    {
    Kick(playerid);
    }
    }


    hier der Forward zum Speichern:

    forward LoadPlayer(playerid);
    public LoadPlayer(playerid)
    {
    new tmp2[256], string2[256];
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    new restring[250];
    new num_fields,num_rows;
    cache_get_data(num_rows,num_fields,dbhandle);
    if(num_rows==1)
    {
    new val[128];
    SetPlayerHealth(playerid,50.0);
    PlayerInfo[playerid][pLevel] = cache_get_field_content_int(0,"Level",dbhandle);
    PlayerInfo[playerid][pAdmin] = cache_get_field_content_int(0,"Adminlevel",dbhandle);
    PlayerInfo[playerid][Hausschluessel] = cache_get_field_content_int(0,"Hausschluessel",dbhandle);
    PlayerInfo[playerid][Hausbesitz] = cache_get_field_content_int(0,"Hausbesitz",dbhandle);
    PlayerInfo[playerid][eingemietet] = cache_get_field_content_int(0,"eingemietet",dbhandle);
    PlayerInfo[playerid][Haus] = cache_get_field_content_int(0,"Haus",dbhandle);
    PlayerInfo[playerid][pSupporter] = cache_get_field_content_int(0,"Supporter",dbhandle);
    PlayerInfo[playerid][pDonateRank] = cache_get_field_content_int(0,"DonateRank",dbhandle);
    PlayerInfo[playerid][gPupgrade] = cache_get_field_content_int(0,"UpgradePoints",dbhandle);
    PlayerInfo[playerid][pConnectTime] = cache_get_field_content_int(0,"ConnectedTime",dbhandle);
    PlayerInfo[playerid][pReg] = cache_get_field_content_int(0,"Registered",dbhandle);
    PlayerInfo[playerid][pSex] = cache_get_field_content_int(0,"Sex",dbhandle);
    PlayerInfo[playerid][pAge] = cache_get_field_content_int(0,"Age",dbhandle);
    PlayerInfo[playerid][pOrigin] = cache_get_field_content_int(0,"Origin",dbhandle);
    PlayerInfo[playerid][pZivispawn] = cache_get_field_content_int(0,"Zivispawn",dbhandle);
    PlayerInfo[playerid][pCK] = cache_get_field_content_int(0,"CK",dbhandle);
    PlayerInfo[playerid][pMuted] = cache_get_field_content_int(0,"Muted",dbhandle);
    PlayerInfo[playerid][pMuteTime] = cache_get_field_content_int(0,"MutedTime",dbhandle);
    PlayerInfo[playerid][pExp] = cache_get_field_content_int(0,"Respect",dbhandle);
    PlayerInfo[playerid][pCash] = cache_get_field_content_int(0,"Money",dbhandle);
    PlayerInfo[playerid][pAccount] = cache_get_field_content_int(0,"Bank",dbhandle);
    PlayerInfo[playerid][pPlayerKredit] = cache_get_field_content_int(0,"Kredit",dbhandle);
    PlayerInfo[playerid][pPlayerKreditDauer] = cache_get_field_content_int(0,"KreditDauer",dbhandle);
    PlayerInfo[playerid][pCrimes] = cache_get_field_content_int(0,"Crimes",dbhandle);
    PlayerInfo[playerid][pKills] = cache_get_field_content_int(0,"Kills",dbhandle);
    PlayerInfo[playerid][pDeaths] = cache_get_field_content_int(0,"Deaths",dbhandle);
    PlayerInfo[playerid][pArrested] = cache_get_field_content_int(0,"Arrested",dbhandle);
    PlayerInfo[playerid][pWantedDeaths] = cache_get_field_content_int(0,"WantedDeaths",dbhandle);
    PlayerInfo[playerid][pPhoneBook] = cache_get_field_content_int(0,"Phonebook",dbhandle);
    PlayerInfo[playerid][pLottoNr] = cache_get_field_content_int(0,"LottoNr",dbhandle);
    PlayerInfo[playerid][pFishes] = cache_get_field_content_int(0,"Fishes",dbhandle);
    PlayerInfo[playerid][pBiggestFish] = cache_get_field_content_int(0,"BiggestFish",dbhandle);
    PlayerInfo[playerid][pJob] = cache_get_field_content_int(0,"Job",dbhandle);
    PlayerInfo[playerid][pJobtime] = cache_get_field_content_int(0,"Jobzeit",dbhandle);
    PlayerInfo[playerid][pPayCheck] = cache_get_field_content_int(0,"Paycheck",dbhandle);
    PlayerInfo[playerid][pHeadValue] = cache_get_field_content_int(0,"HeadValue",dbhandle);
    PlayerInfo[playerid][pJailed] = cache_get_field_content_int(0,"Jailed",dbhandle);
    PlayerInfo[playerid][pGangJailed] = cache_get_field_content_int(0,"GangJailed",dbhandle);
    PlayerInfo[playerid][pMauled] = cache_get_field_content_int(0,"Mauled",dbhandle);
    PlayerInfo[playerid][pJailTime] = cache_get_field_content_int(0,"JailTime",dbhandle);
    PlayerInfo[playerid][pMats] = cache_get_field_content_int(0,"Materials",dbhandle);
    PlayerInfo[playerid][pDrugs] = cache_get_field_content_int(0,"Drugs",dbhandle);
    PlayerInfo[playerid][pVerband] = cache_get_field_content_int(0,"Verband",dbhandle);
    PlayerInfo[playerid][pNavigations] = cache_get_field_content_int(0,"Navigations",dbhandle);
    PlayerInfo[playerid][pHatIrgenteinHome] = cache_get_field_content_int(0,"HatIrgenteinHime",dbhandle);
    PlayerInfo[playerid][pPin] = cache_get_field_content_int(0,"Pin",dbhandle);
    PlayerInfo[playerid][pDonatorPoints] = cache_get_field_content_int(0,"DonatorPoints",dbhandle);
    PlayerInfo[playerid][pNumberchange] = cache_get_field_content_int(0,"Numberchange",dbhandle);
    PlayerInfo[playerid][pHarndrang] = cache_get_field_content_int(0,"Harndrang",dbhandle);
    PlayerInfo[playerid][pHunger] = cache_get_field_content_int(0,"Hunger",dbhandle);
    PlayerInfo[playerid][pBoxMats] = cache_get_field_content_int(0,"BoxMaterials",dbhandle);
    PlayerInfo[playerid][pBoxDrugs] = cache_get_field_content_int(0,"BoxDrugs",dbhandle);
    // SetPlayerFightingStyle(playerid) = cache_get_field_content_int(0,"FightingStyle",dbhandle);
    PlayerInfo[playerid][pLeader] = cache_get_field_content_int(0,"Leader",dbhandle);
    PlayerInfo[playerid][pMember] = cache_get_field_content_int(0,"Member",dbhandle);
    PlayerInfo[playerid][pFMember] = cache_get_field_content_int(0,"FMember",dbhandle);
    PlayerInfo[playerid][pRank] = cache_get_field_content_int(0,"Rank",dbhandle);
    PlayerInfo[playerid][pChar] = cache_get_field_content_int(0,"Char",dbhandle);
    PlayerInfo[playerid][pContractTime] = cache_get_field_content_int(0,"ContractTime",dbhandle);
    PlayerInfo[playerid][pDetSkill] = cache_get_field_content_int(0,"DetSkill",dbhandle);
    PlayerInfo[playerid][pSexSkill] = cache_get_field_content_int(0,"SexSkill",dbhandle);
    PlayerInfo[playerid][pBoxSkill] = cache_get_field_content_int(0,"BoxSkill",dbhandle);
    PlayerInfo[playerid][pLawSkill] = cache_get_field_content_int(0,"LawSkill",dbhandle);
    PlayerInfo[playerid][pMechSkill] = cache_get_field_content_int(0,"MechSkill",dbhandle);
    PlayerInfo[playerid][pJackSkill] = cache_get_field_content_int(0,"JackSkill",dbhandle);
    PlayerInfo[playerid][pCarSkill] = cache_get_field_content_int(0,"CarSkill",dbhandle);
    PlayerInfo[playerid][pNewsSkill] = cache_get_field_content_int(0,"NewsSkill",dbhandle);
    PlayerInfo[playerid][pCookSkill] = cache_get_field_content_int(0,"CookSkill",dbhandle);
    PlayerInfo[playerid][pFishSkill] = cache_get_field_content_int(0,"FischSkill",dbhandle);
    PlayerInfo[playerid][pSHealth] = cache_get_field_content_int(0,"pSHealth",dbhandle);
    PlayerInfo[playerid][pHealth] = cache_get_field_content_int(0,"pHealth",dbhandle);
    PlayerInfo[playerid][pInt] = cache_get_field_content_int(0,"Int",dbhandle);
    PlayerInfo[playerid][pLocal] = cache_get_field_content_int(0,"Local",dbhandle);
    PlayerInfo[playerid][pTeam] = cache_get_field_content_int(0,"Team",dbhandle);
    PlayerInfo[playerid][pModel] = cache_get_field_content_int(0,"Model",dbhandle);
    PlayerInfo[playerid][pPnumber] = cache_get_field_content_int(0,"PhoneNr",dbhandle);
    PlayerInfo[playerid][pPhousekey] = cache_get_field_content_int(0,"House",dbhandle);
    PlayerInfo[playerid][pPbiskey] = cache_get_field_content_int(0,"Bizz",dbhandle);
    PlayerInfo[playerid][pHandyGeld] = cache_get_field_content_int(0,"HandyGeld",dbhandle);
    PlayerInfo[playerid][pHandyVer] = cache_get_field_content_int(0,"HandyVer",dbhandle);
    PlayerInfo[playerid][pPos_x] = cache_get_field_content_int(0,"Pos_x",dbhandle);
    PlayerInfo[playerid][pPos_y] = cache_get_field_content_int(0,"Pos_y",dbhandle);
    PlayerInfo[playerid][pPos_z] = cache_get_field_content_int(0,"Pos_z",dbhandle);
    PlayerInfo[playerid][pCarLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    PlayerInfo[playerid][pNewLic] = cache_get_field_content_int(0,"NewLic",dbhandle);
    PlayerInfo[playerid][pFlyLic] = cache_get_field_content_int(0,"FlyLic",dbhandle);
    PlayerInfo[playerid][pBoatLic] = cache_get_field_content_int(0,"BoatLic",dbhandle);
    PlayerInfo[playerid][pFishLic] = cache_get_field_content_int(0,"FishLic",dbhandle);
    PlayerInfo[playerid][pZollPass] = cache_get_field_content_int(0,"Zollpass",dbhandle);
    PlayerInfo[playerid][pZollPassTime] = cache_get_field_content_int(0,"ZollpassTime",dbhandle);
    PlayerInfo[playerid][pStatsBox] = cache_get_field_content_int(0,"StatsBox",dbhandle);
    PlayerInfo[playerid][pGunLic] = cache_get_field_content_int(0,"GunLic",dbhandle);
    PlayerInfo[playerid][pLKWLic] = cache_get_field_content_int(0,"LKWLic",dbhandle);
    PlayerInfo[playerid][pRollerLic] = cache_get_field_content_int(0,"RollerLic",dbhandle);
    PlayerInfo[playerid][pTaxiLic] = cache_get_field_content_int(0,"Taxischein",dbhandle);
    PlayerInfo[playerid][pMotoLic] = cache_get_field_content_int(0,"MotoLic",dbhandle);
    PlayerInfo[playerid][pZig] = cache_get_field_content_int(0,"Zig",dbhandle);
    PlayerInfo[playerid][pKekse] = cache_get_field_content_int(0,"Kekse",dbhandle);
    PlayerInfo[playerid][pZigSucht] = cache_get_field_content_int(0,"ZigSucht",dbhandle);
    PlayerInfo[playerid][pGun1] = cache_get_field_content_int(0,"Gun1",dbhandle);
    PlayerInfo[playerid][pGun2] = cache_get_field_content_int(0,"Gun2",dbhandle);
    PlayerInfo[playerid][pGun3] = cache_get_field_content_int(0,"Gun3",dbhandle);
    PlayerInfo[playerid][pGun4] = cache_get_field_content_int(0,"Gun4",dbhandle);
    PlayerInfo[playerid][pAmmo1] = cache_get_field_content_int(0,"Ammo1",dbhandle);
    PlayerInfo[playerid][pAmmo2] = cache_get_field_content_int(0,"Ammo2",dbhandle);
    PlayerInfo[playerid][pAmmo3] = cache_get_field_content_int(0,"Ammo3",dbhandle);
    PlayerInfo[playerid][pAmmo4] = cache_get_field_content_int(0,"Ammo4",dbhandle);
    PlayerInfo[playerid][pCarTime] = cache_get_field_content_int(0,"CarTime",dbhandle);
    PlayerInfo[playerid][pStrassentime] = cache_get_field_content_int(0,"Srassentime",dbhandle);
    PlayerInfo[playerid][pPayDay] = cache_get_field_content_int(0,"PayDay",dbhandle);
    PlayerInfo[playerid][pPayDayHad] = cache_get_field_content_int(0,"PayDayHead",dbhandle);
    PlayerInfo[playerid][pCDPlayer] = cache_get_field_content_int(0,"CDPlayer",dbhandle);
    PlayerInfo[playerid][pWins] = cache_get_field_content_int(0,"Wins",dbhandle);
    PlayerInfo[playerid][pLoses] = cache_get_field_content_int(0,"Loses",dbhandle);
    PlayerInfo[playerid][pAlcoholPerk] = cache_get_field_content_int(0,"AlcoholPerk",dbhandle);
    PlayerInfo[playerid][pDrugPerk] = cache_get_field_content_int(0,"DrugPerk",dbhandle);
    PlayerInfo[playerid][pMiserPerk] = cache_get_field_content_int(0,"MiserPerk",dbhandle);
    PlayerInfo[playerid][pPainPerk] = cache_get_field_content_int(0,"PainPerk",dbhandle);
    PlayerInfo[playerid][pTraderPerk] = cache_get_field_content_int(0,"TraderPerk",dbhandle);
    PlayerInfo[playerid][pTut] = cache_get_field_content_int(0,"Tutorial",dbhandle);
    PlayerInfo[playerid][pWarns] = cache_get_field_content_int(0,"Warnings",dbhandle);
    PlayerInfo[playerid][pAdjustable] = cache_get_field_content_int(0,"Adjustable",dbhandle);
    PlayerInfo[playerid][pFuel] = cache_get_field_content_int(0,"Fuel",dbhandle);
    PlayerInfo[playerid][pMarried] = cache_get_field_content_int(0,"Married",dbhandle);
    SpawnChange[playerid] = cache_get_field_content_int(0,"SpawnChange",dbhandle);
    WantedLevel[playerid] = cache_get_field_content_int(0,"WantedLevel",dbhandle);
    WantedPoints[playerid] = cache_get_field_content_int(0,"WantedPoints",dbhandle);
    PlayerInfo[playerid][pPlayMinutes] = cache_get_field_content_int(0,"PlayMinutes",dbhandle);
    PlayerInfo[playerid][pGesamtMinutes] = cache_get_field_content_int(0,"GesamtMinutes",dbhandle);
    PlayerInfo[playerid][pMinutesSinceAn] = cache_get_field_content_int(0,"MinutesSinceAn",dbhandle);
    OfflineFlucht[playerid] = cache_get_field_content_int(0,"Offflucht",dbhandle);
    Knast[playerid] = cache_get_field_content_int(0,"Knast",dbhandle);
    PlayerInfo[playerid][pHandyID] = cache_get_field_content_int(0,"Handy",dbhandle);
    PlayerInfo[playerid][pUhrID] = cache_get_field_content_int(0,"Uhr",dbhandle);
    KnastTime[playerid] = cache_get_field_content_int(0,"KnastTime",dbhandle);
    PlayerInfo[playerid][pOwnPerso] = cache_get_field_content_int(0,"Perso",dbhandle);
    PlayerInfo[playerid][pFrakSperre] = cache_get_field_content_int(0,"Fraksperre",dbhandle);
    PlayerInfo[playerid][pGehalt] = cache_get_field_content_int(0,"Gehalt",dbhandle);
    PlayerInfo[playerid][pJobgeld] = cache_get_field_content_int(0,"Verdienst",dbhandle);
    PlayerInfo[playerid][pInvWeapon] = cache_get_field_content_int(0,"InvWeapon",dbhandle);
    PlayerInfo[playerid][pInvAmmo] = cache_get_field_content_int(0,"InvAmmo",dbhandle);
    PlayerInfo[playerid][pInvWeapon2] = cache_get_field_content_int(0,"InvWeapon2",dbhandle);
    PlayerInfo[playerid][pInvAmmo2] = cache_get_field_content_int(0,"InvAmmo2",dbhandle);
    PlayerInfo[playerid][pInvMats] = cache_get_field_content_int(0,"InvMats",dbhandle);
    PlayerInfo[playerid][pInvDrugs] = cache_get_field_content_int(0,"InvDrugs",dbhandle);
    PlayerInfo[playerid][pAngelschnur] = cache_get_field_content_int(0,"Angelschnur",dbhandle);
    PlayerInfo[playerid][pKoeder] = cache_get_field_content_int(0,"Koeder",dbhandle);
    PlayerInfo[playerid][pFarmTime] = cache_get_field_content_int(0,"FarmTime",dbhandle);
    PlayerInfo[playerid][pGDeaths] = cache_get_field_content_int(0,"GDeaths",dbhandle);
    PlayerInfo[playerid][pGKills] = strval(val);cache_get_field_content_int(0,"GSkills",dbhandle);
    PlayerInfo[playerid][pGWD] = strval(val);cache_get_field_content_int(0,"GWD",dbhandle);
    PlayerInfo[playerid][pMeldung] = cache_get_field_content_int(0,"Meldung",dbhandle);
    PlayerInfo[playerid][pPtankekey] = cache_get_field_content_int(0,"Tanke",dbhandle);
    PlayerInfo[playerid][pJasonMaske] = cache_get_field_content_int(0,"JasonMaske",dbhandle);
    PlayerInfo[playerid][pHelm] = cache_get_field_content_int(0,"Helm",dbhandle);
    PlayerInfo[playerid][pVerwarnung] = cache_get_field_content_int(0,"Verwarnung",dbhandle);
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Das Passwort ist nicht korrekt! Bitte gib nun dein richtiges Passwort ein:","Anmelden","Abbrechen");
    gPlayerLogTries[playerid] += 1;
    if(gPlayerLogTries[playerid] == 4) { Kick(playerid); }
    return 1;
    }


    So speichere ich es...
    Ein OnPlayerUpdate muss ich noch auf MySQL gleich aktualisieren...
    Lg
    J0a9

  • Hallo eLiTe,


    vielen Dank für deine Hilfe, hat jetzt geklappt :D
    Eins habe ich nur geändert und zwar statt:

    if(PlayerInfo[i][pTut]) TutTime[i] = 0,AfterTutorial[i] = 1;


    in:

    PlayerInfo[playerid][pTut] = 1;
    TutTime[playerid] = 0 ; AfterTutorial[playerid] = 0;



    Lg
    J0a9