Mysql Alter wird falsch registriert

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
  • Ja, dort wo du die Tabelle erstellst, wenn du es nicht mit phpMyAdmin machst. Entsprechend so, ja.


    Schau doch mal in deine Datenbank. Stimmt das Geburtsdatum innerhalb der Datenbank?


    Und poste den Code mit dem du dem Spieler im Server das Geburtsdatum anzeigen lässt.

  • Wie oft muss ich mich noch wiederholen bis du meine Fragen beantwortest? Wie soll ich dir denn helfen, wenn du meine Fragen nicht beantwortest?


    1. Steht das Geburtsdatum richtig in der DATENBANK?
    2. Wie zeigst du dem Spieler das Geburtsdatum im SPIEL an? Poste den CODE dazu.
    3. WO wird die 48 angezeigt?
    4. Hast du das in dem enum geändert?



    Antworte bitte auf alle vier Fragen.

  • Dann hast du es nicht richtig geändert.


    Poste bitte folgendes:
    Speicherung des Geburtsdatums
    Laden des Geburtsdatums
    Setzen des Wertes der Geburtsdatumsvariable (der Teil vom registrieren)
    Deklaration des Geburtsdatums (das ganze enum!)


    In der Datenbank ist die Geburtsdatumsspalte auf VARCHAR, das hast du überprüft?

  • enum pAcc_daten
    {
    pAntiHealInFight,
    pHealOther,
    pCondoms,
    pIll,
    pConterminatedTime,
    pHealTime,
    pMedicHealplayerSkill,
    pMedicHealCount,
    pBitchSkill,
    pBitchFuckCount,
    TachoTimer,
    bool:TachoShow,
    pAimbotTest,
    bool:pGenerateState,
    pGenerateTimer,
    Float:SlashBackPos[4],
    bool:pJobchat,
    bool:pParkTicket[3],
    bool:pViewStats,
    pTsIdent[32],
    pDuenger,
    pBuyClothes,
    pAntiVehicleEnterVehicleID,
    pAntiVehicleEnter,
    pGWFPSWarns,
    pLastStreamerUpdate,
    bool:pSupcar,
    pSupcarVehicle,
    pPassword[32],
    pEmail[64],
    bool:pOnRegister,
    pTutorialObject[154],
    bool:pTutMissionComplete[5],
    pAcPause[2],
    pGetRocketLauncherTime,
    pGetGrenadesTime,
    pReturnPropertyDataHausCount,
    pReturnPropertyDataHaus,
    bool:pFreezed,
    pAcceptMarriedQuest,
    pInMarried,
    pMarried[24],
    pTutTimer4All,
    pTutTime4All,
    pWarns,
    pLohn,
    pWorkLess,
    pOrgLeader,
    pOrgMember,
    pSpawn,
    pAntiOfflineFlucht,
    pSelectHome,
    pRentHome,
    pHotel,
    pReportSelect,
    bool:pWriteReport[4],
    pReportPartner,
    pAReport,
    pAtReport,
    pKartTimer,
    pKartCountdown,
    pKart,
    pKartracingCP1,
    pSnow,
    pHaveSnow,
    pAcceptDice,
    pDiceTries[3],
    pSavePlayerCmd,
    pPBKills,
    pPBDeaths,
    pPBRang,
    pBankSafeSafe,
    pBankSafeGanja,
    pBankSafeKokain,
    pBankSafeOpium,
    pBankSafeMaterials,
    pBankSafeC4,
    pPBVisits,
    pBaggerTimer,
    pSpraytagTimer,
    pFreedomTry,
    pFreedomTime,
    pSound,
    pShowVehInfo,
    pTalkwithBankbitch,
    pStartbonus,
    pBusTimer,
    pTankArt,
    pTankVehicle,
    pHeadMoney,
    pKofferBombID,
    pHaveMaske,
    pMaske,
    pSpecificSkin,
    pSkinRob,
    pWearSpecificSkin,
    pC4,
    bool:pTankState,
    bool:pCallServiceMedic,
    bool:pCallServiceRubbishMen,
    bool:pCallServiceTaxi,
    bool:pCallServicMechanic,
    bool:pCallServicElektrik,
    bool:pCallServicSAPD,
    bool:pCallServicOAmt,
    bool:pCallServicFireBrigade,
    bool:pCallServiceWheelman,
    pStonedCount,
    pStonedAntiSpam,
    pStonedTimer[3],
    Float:StonedHP,
    PprobefahrtVeh,
    PprobefahrtTime,
    PprobefahrtVehID,
    pAntiRconLogins,
    pAntiCheckPointWarns,
    pLastSpamChat[3],
    pAntiSpamChatWarns,
    pLastSpamCmd[3],
    pAntiSpamCmdWarns,
    pFirstPersonObj,
    pFirstPersonMode,
    pName[MAX_PLAYER_NAME],
    pViewTutorial,
    pTutorialTime,
    pSex,
    pCash,
    pLevel,
    pBank,
    pBankkonto,
    pBankPin,
    pWrongBankPinEntry,
    pKlingelSpam,
    pRespektFromPayday,
    pRespektToLevelUp,
    pTimeAfterRegister,
    pMinutesAfterPayday,
    pLevelKosten,
    HatGeworben,
    GeworbenPlaya[24],
    pYearsOld,
    pSkin,
    pAnticheatWeap[13],
    pAnticheatWeapAmmo[13],
    pPlayerWeapon[13],
    pPlayerWeaponAmmo[13],
    pFraktion,
    pFraktionSperre,
    pLeader,
    pFraktRang,
    pFraktionsGehalt,
    pAdmin,
    bool:pUseFlyCam,
    pJob,
    pLottonumber,
    WorkInJob,
    pTankFillBoxes,
    pRepairVehBoxes,
    pAlc,
    pLunchpaket,
    pZigarets,
    pAutoLic,
    pBikeLic,
    pRollerLic,
    pHeliLic,
    pArmyHeliOrder,
    pPlaneLic,
    pArmyPlaneOrder,
    pBoatLic,
    pWaffenLic,
    pArmyWaffenOrder,
    pFishingLic,
    pPersoLic,
    pNavi,
    pMaterials,
    pKoffer,
    pKofferItems[10],
    pGanja,
    pOpium,
    pKokain,
    pGanjaSammen,
    pOpiumSammen,
    pKokainSammen,
    pFishID[MAX_FISHING_FISHES],
    pFischgewicht[MAX_FISHING_FISHES],
    pFischingAntiSpam,
    pAngelKoeder,
    pAngel,
    pSchulungsVEH,
    pSchulungsCPautolic,
    pSchulungsCPmotorbikelic,
    pSchulungsCProllerlic,
    pSchulungsCPfluglic,
    pSchulungsCPbootlic,
    pSchulungsCPhelilic,
    pSchulungsAntiSpam,
    pSchulungsWARNS,
    pIssureKiller,
    pBankRobTimer,
    bool:pBankRobState,
    bool:pC4RobState,
    pFPS,
    pLastDrunkLevel,
    pInPrison,
    pPrisonCPsgegeben,
    pPrisonCPsgelaufen,
    pJobSperre,
    pFraktSkin,
    pFraktABTInvite,
    pTazerd,
    pCuffed,
    pAugenbinde,
    pPremium,
    MatsPackete,
    DrugPackete,
    pBizProbOptionUsed,
    pSmarkProbOptionUsed,
    pKaution,
    pMotorradhelm,
    pWearedAMotorradhelm,
    pPhonenumber,
    pHandy,
    pHandystate,
    pHandyCoins,
    Float:pHandyakku,
    pHandyFlat,
    pHandyBuyByBiz,
    pCallBook,
    pCallEntry,
    pSMSText[128],
    pWantedPoints,
    pSuspectPoints,
    pLastSuspects,
    pSTVOpoints,
    pWantedDeaths,
    pBuyTickets,
    pJailedCount,
    pJailed,
    pJailTime,
    pMuted,
    pMuteTime,
    pInHospital,
    pRevived,
    pNextDeath,
    pDeath,
    pDeathTime,
    pFriedhof,
    pFriedhofTime,
    Skinchange,
    FSkinchange,
    PaintballRefreshPickupTimer,
    Skin,
    AmUmkleiden,
    pDuty,
    pMorde,
    pTode,
    pArmouredbyASchild,
    pWearedASchild,
    bool:pAdminOnduty,
    ImInvite,
    pPrisonDMWarns,
    pKnastUNDFriedhofsDMWarns,
    pAFKKeyStates,
    Float:pAFKPos[3],
    pAWAYFROMKEYBOARD,
    bool:pAFKPDAYDOWN,
    pAFKAwayTime,
    pSpectate,
    pEnterExits,
    pCall,
    pCallHim,
    pTazer,
    pTazerAkku,
    pTazerInorOutbag,
    pTazerTimer,
    pOrtungsgeraet,
    pFunkgeraet,
    pMegaphon,
    pIsearch,
    pOrtenVehORPlayer,
    pOrtenVehIDplayerid,
    pFBuyCheckPoint,
    pWaitEating,
    pWaitEatingMenu,
    pSeller,
    pAntiWarning,
    pAngebot,
    pKaufPreis,
    pMenge,
    pMenge2,
    pVerbrauch,
    pBlitzerTime,
    InFahrSchulPruefung,
    LiveView,
    InviteInterView,
    bool:pNEWS,
    WaitPerso,
    WaitPersoReadyMsg,
    IreadALL,
    pRentAVeh[2],
    pTaxiDuty,
    pTaxiBeifahrerPreis,
    pTaxiTimer,
    pTaxiPrice,
    pTaxiSeat,
    pTaxiTimerPause,
    pBuyVehicleCP,
    Float:tot_x,
    Float:tot_y,
    Float:tot_z,
    tot_int,
    tot_world,
    Float:CurrentPos[3],
    Float:LastInGamePos_x,
    Float:LastInGamePos_y,
    Float:LastInGamePos_z,
    LastInGamePos_int,
    LastInGamePos_world,
    pBL[MAX_FRAKTIONNEN],
    pGrundwehrdienst,
    pZiviNote,
    pRobOtherTime,
    pRobOtherThing,
    pRobTimeInTresor,
    pRobBackwardTimeTresor,
    JobWarns,
    Float:MarkerXpos[MAX_ADMINMARKER],
    Float:MarkerYpos[MAX_ADMINMARKER],
    Float:MarkerZpos[MAX_ADMINMARKER],
    MarkerInt[MAX_ADMINMARKER],
    MarkerVirtualWorld[MAX_ADMINMARKER],
    pFreezedInNoDmZone,
    pFightstyleEinheiten,
    pTrainingFightstyle,
    pFightstyleArt,
    pScheinSperre,
    ShowNetworks,
    DigiHud,
    DienstwaffeAntiSpam,
    Reports,
    Float:FlyXpos[4],
    Float:FlyYpos[4],
    Float:FlyZpos[4],
    FlyInt,
    FlyVirtualWorld,
    FlyTime,
    pGeburtstag[11]
    }


    case DIALOG_REGISTER4:
    {
    getdate(jahr,monat,tag);
    gettime(stunde,minute,sekunde);
    new DateInfo[3][20],string[200];
    split(inputtext,DateInfo,'.');
    if(response == 0) return Kick(playerid);
    else
    {
    if(strlen(inputtext) > 10)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER4,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Registrierung/Alter","Gebe nun bitte dein Alter ein. | Angabe bitte in TT.MM.JJJJ","Weiter","Verlassen");
    return 1;
    }
    if(!IsValidDate(strval(DateInfo[0]),strval(DateInfo[1]),strval(DateInfo[2])))
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER4,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Registrierung/Alter","Gebe nun bitte dein Alter ein. | Angabe bitte in TT.MM.JJJJ","Weiter","Verlassen");
    return 1;
    }
    if(jahr - strval(DateInfo[2]) > 100 || strval(DateInfo[2]) < 1 || strval(DateInfo[2]) >= jahr)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER4,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Registrierung/Alter","Gebe nun bitte dein Alter ein. | Angabe bitte in TT.MM.JJJJ","Weiter","Verlassen");
    return 1;
    }
    new check = jahr - strval(DateInfo[2]);
    if(strval(DateInfo[1]) > monat)
    {
    check -= 1;
    }
    else if(strval(DateInfo[1]) == monat && strval(DateInfo[0]) > tag)
    {
    check -= 1;
    }
    if(check < 14 || check > 50)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER4,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Registrierung/Alter","Gebe nun bitte dein Alter ein. | Angabe bitte in TT.MM.JJJJ","Weiter","Verlassen");
    return 1;
    }
    Spieler[playerid][pYearsOld] = check;
    format(Spieler[playerid][pGeburtstag],11,inputtext);
    format(string,sizeof(string),"Und du bist also %i Jahre alt.",Spieler[playerid][pYearsOld]);
    SendClientMessage(playerid,HELLROT,string);
    StopAudioStreamForPlayer(playerid);
    ImTutorial[playerid] = 1;
    CreateAccount(playerid);
    return 1;
    }
    }


    public LoadAccount(playerid)
    {
    new query[356],result[25],rows,fields;
    if(mysql_errno() != 0)
    {
    getdate(tag,monat,jahr);
    gettime(stunde,minute,sekunde);
    ForEachPlayer(i)
    {
    if(IsPlayerConnected(i) && !IsPlayerNPC(i) && GetPVarInt(i,"Eingeloggt") == 1)
    {
    SaveAccount(i);
    }
    }
    Log("Restartssqllog","Admin: System hat den Server gerestartet(Dead MySql Connection)!");
    OnGameModeSave();
    GameModeExit();
    return 1;
    }
    cache_get_data(rows,fields);
    if(rows)
    {
    cache_get_field_content(0,"Tutorial",result);
    Spieler[playerid][pViewTutorial] = strval(result);
    cache_get_field_content(0,"Admin",result);
    Spieler[playerid][pAdmin] = strval(result);
    cache_get_field_content(0,"Verwarnungen",result);
    Spieler[playerid][pWarns] = strval(result);
    cache_get_field_content(0,"FLeaderRechte",result);
    Spieler[playerid][pLeader] = strval(result);
    cache_get_field_content(0,"Fraktion",result);
    Spieler[playerid][pFraktion] = strval(result);
    cache_get_field_content(0,"FraktionsRang",result);
    Spieler[playerid][pFraktRang] = strval(result);
    cache_get_field_content(0,"FraktionsSperre",result);
    Spieler[playerid][pFraktionSperre] = strval(result);
    cache_get_field_content(0,"FraktionsGehalt",result);
    Spieler[playerid][pFraktionsGehalt] = strval(result);
    cache_get_field_content(0,"Job",result);
    Spieler[playerid][pJob] = strval(result);
    cache_get_field_content(0,"JobWarns",result);
    Spieler[playerid][JobWarns] = strval(result);
    cache_get_field_content(0,"JobSperre",result);
    Spieler[playerid][pJobSperre] = strval(result);
    cache_get_field_content(0,"ArbeitslosenGeld",result);
    Spieler[playerid][pWorkLess] = strval(result);
    cache_get_field_content(0,"Geschlecht",result);
    Spieler[playerid][pSex] = strval(result);
    cache_get_field_content(0,"SpielerAlter",result);
    Spieler[playerid][pYearsOld] = strval(result);
    cache_get_field_content(0,"Level",result);
    SetPlayerLevel(playerid,strval(result));
    cache_get_field_content(0,"Geld",result);
    ACMoney(playerid,strval(result));
    cache_get_field_content(0,"GWD",result);
    Spieler[playerid][pGrundwehrdienst] = strval(result);
    cache_get_field_content(0,"Zivinote",result);
    Spieler[playerid][pZiviNote] = strval(result);
    cache_get_field_content(0,"FAbteilung",result);
    Spieler[playerid][pFraktABTInvite] = strval(result);
    cache_get_field_content(0,"Bankguthaben",result);
    Spieler[playerid][pBank] = strval(result);
    cache_get_field_content(0,"BankPin",result);
    Spieler[playerid][pBankPin] = strval(result);
    cache_get_field_content(0,"WantedSterne",result);
    SetPlayerWantedLevel(playerid,strval(result));
    cache_get_field_content(0,"WantedPunkte",result);
    Spieler[playerid][pWantedPoints] = strval(result);
    cache_get_field_content(0,"Suspects",result);
    Spieler[playerid][pSuspectPoints] = strval(result);
    cache_get_field_content(0,"Wanted_Grund1",result);
    strmid(pWantedReason1[playerid],result,0,strlen(result),64);
    cache_get_field_content(0,"Wanted_Grund2",result);
    strmid(pWantedReason2[playerid],result,0,strlen(result),64);
    cache_get_field_content(0,"Wanted_Grund3",result);
    strmid(pWantedReason3[playerid],result,0,strlen(result),64);
    cache_get_field_content(0,"Wanted_Grund4",result);
    strmid(pWantedReason4[playerid],result,0,strlen(result),64);
    cache_get_field_content(0,"Wanted_Grund5",result);
    strmid(pWantedReason5[playerid],result,0,strlen(result),64);
    cache_get_field_content(0,"Crimes",result);
    Spieler[playerid][pLastSuspects] = strval(result);
    cache_get_field_content(0,"STVOcrimes",result);
    Spieler[playerid][pSTVOpoints] = strval(result);
    cache_get_field_content(0,"KampfStyle",result);
    SetPlayerFightingStyle(playerid,strval(result));
    cache_get_field_content(0,"Handy",result);
    Spieler[playerid][pHandy] = strval(result);
    cache_get_field_content(0,"Handycoins",result);
    Spieler[playerid][pHandyCoins] = strval(result);
    cache_get_field_content(0,"HandyStatus",result);
    Spieler[playerid][pHandystate] = strval(result);
    cache_get_field_content(0,"HandyAkku",result);
    Spieler[playerid][pHandyakku] = floatstr(result);
    cache_get_field_content(0,"HandyNummer",result);
    Spieler[playerid][pPhonenumber] = strval(result);
    cache_get_field_content(0,"Handyflat",result);
    Spieler[playerid][pHandyFlat] = strval(result);
    cache_get_field_content(0,"Handyflatbuyinbiz",result);
    Spieler[playerid][pHandyBuyByBiz] = strval(result);
    cache_get_field_content(0,"Letzte_X",result);
    Spieler[playerid][LastInGamePos_x] = floatstr(result);
    cache_get_field_content(0,"Letzte_Y",result);
    Spieler[playerid][LastInGamePos_y] = floatstr(result);
    cache_get_field_content(0,"Letzte_Z",result);
    Spieler[playerid][LastInGamePos_z] = floatstr(result);
    cache_get_field_content(0,"Letzte_Interior",result);
    Spieler[playerid][LastInGamePos_int] = strval(result);
    cache_get_field_content(0,"Letzte_VirtualWorld",result);
    Spieler[playerid][LastInGamePos_world] = strval(result);
    cache_get_field_content(0,"pSelectHome",result);
    Spieler[playerid][pSelectHome] = strval(result);
    cache_get_field_content(0,"HausMieter",result);
    Spieler[playerid][pRentHome] = strval(result);
    cache_get_field_content(0,"Spawn",result);
    Spieler[playerid][pSpawn] = strval(result);
    cache_get_field_content(0,"Hotel",result);
    Spieler[playerid][pHotel] = strval(result);
    cache_get_field_content(0,"Tod",result);
    Spieler[playerid][pDeath] = strval(result);
    cache_get_field_content(0,"Tot_X",result);
    Spieler[playerid][tot_x] = floatstr(result);
    cache_get_field_content(0,"Tot_Y",result);
    Spieler[playerid][tot_y] = floatstr(result);
    cache_get_field_content(0,"Tot_Z",result);
    Spieler[playerid][tot_z] = floatstr(result);
    cache_get_field_content(0,"Tot_Interior",result);
    Spieler[playerid][tot_int] = strval(result);
    cache_get_field_content(0,"Tot_VirtualWorld",result);
    Spieler[playerid][tot_world] = strval(result);
    cache_get_field_content(0,"TotZeit",result);
    Spieler[playerid][pDeathTime] = strval(result);
    cache_get_field_content(0,"Friedhof",result);
    Spieler[playerid][pFriedhof] = strval(result);
    cache_get_field_content(0,"FriedhofZeit",result);
    Spieler[playerid][pFriedhofTime] = strval(result);
    cache_get_field_content(0,"ImKnast",result);
    Spieler[playerid][pJailed] = strval(result);
    cache_get_field_content(0,"KnastZeit",result);
    Spieler[playerid][pJailTime] = strval(result);
    cache_get_field_content(0,"KnastKaution",result);
    Spieler[playerid][pKaution] = strval(result);
    cache_get_field_content(0,"Muted",result);
    Spieler[playerid][pMuted] = strval(result);
    cache_get_field_content(0,"MuteZeit",result);
    Spieler[playerid][pMuteTime] = strval(result);
    cache_get_field_content(0,"ImPrison",result);
    Spieler[playerid][pInPrison] = strval(result);
    cache_get_field_content(0,"PrisonCPRun",result);
    Spieler[playerid][pPrisonCPsgelaufen] = strval(result);
    cache_get_field_content(0,"PrisonCPGive",result);
    Spieler[playerid][pPrisonCPsgegeben] = strval(result);
    cache_get_field_content(0,"Morde",result);
    Spieler[playerid][pMorde] = strval(result);
    cache_get_field_content(0,"Tode",result);
    Spieler[playerid][pTode] = strval(result);
    cache_get_field_content(0,"SkinID",result);
    Spieler[playerid][pSkin] = strval(result);
    cache_get_field_content(0,"FraktionSkinID",result);
    Spieler[playerid][pFraktSkin] = strval(result);
    cache_get_field_content(0,"PaintBallKills",result);
    Spieler[playerid][pPBKills] = strval(result);
    cache_get_field_content(0,"PaintBallTode",result);
    Spieler[playerid][pPBDeaths] = strval(result);
    cache_get_field_content(0,"PaintBallRang",result);
    Spieler[playerid][pPBRang] = strval(result);
    cache_get_field_content(0,"PaintBallBesuche",result);
    Spieler[playerid][pPBVisits] = strval(result);
    cache_get_field_content(0,"AngenommeneReports",result);
    Spieler[playerid][Reports] = strval(result);
    cache_get_field_content(0,"KopfGeld",result);
    Spieler[playerid][pHeadMoney] = strval(result);
    cache_get_field_content(0,"pWantedDeaths",result);
    Spieler[playerid][pWantedDeaths] = strval(result);
    cache_get_field_content(0,"pBuyTickets",result);
    Spieler[playerid][pBuyTickets] = strval(result);
    cache_get_field_content(0,"pJailedCount",result);
    Spieler[playerid][pJailedCount] = strval(result);
    cache_get_field_content(0,"Bankkonto",result);
    Spieler[playerid][pBankkonto] = strval(result);
    cache_get_field_content(0,"pArmyPlaneOrder",result);
    Spieler[playerid][pArmyPlaneOrder] = strval(result);
    cache_get_field_content(0,"pArmyHeliOrder",result);
    Spieler[playerid][pArmyHeliOrder] = strval(result);
    cache_get_field_content(0,"pArmyWaffenOrder",result);
    Spieler[playerid][pArmyWaffenOrder] = strval(result);
    cache_get_field_content(0,"LevelUPKosten",result);
    Spieler[playerid][pLevelKosten] = strval(result);
    cache_get_field_content(0,"RespectForLevelUp",result);
    Spieler[playerid][pRespektToLevelUp] = strval(result);
    cache_get_field_content(0,"RespectFromPayday",result);
    Spieler[playerid][pRespektFromPayday] = strval(result);
    cache_get_field_content(0,"TimeAfterRegister",result);
    Spieler[playerid][pTimeAfterRegister] = strval(result);
    cache_get_field_content(0,"Time4Payday",result);
    Spieler[playerid][pMinutesAfterPayday] = strval(result);
    cache_get_field_content(0,"TimeoutCrashExeorKick",result);
    Spieler[playerid][pAntiOfflineFlucht] = strval(result);
    cache_get_field_content(0,"HabGeworben",result);
    Spieler[playerid][HatGeworben] = strval(result);
    cache_get_field_content(0,"pPremium",result);
    Spieler[playerid][pPremium] = strval(result);
    cache_get_field_content(0,"GeworbenerSpieler",result);
    strmid(Spieler[playerid][GeworbenPlaya],result,0,strlen(result),24);
    cache_get_field_content(0,"pScheinSperre",result);
    Spieler[playerid][pScheinSperre] = strval(result);
    cache_get_field_content(0,"DigiHud",result);
    Spieler[playerid][DigiHud] = strval(result);
    cache_get_field_content(0,"Bonus",result);
    Spieler[playerid][pStartbonus] = strval(result);
    cache_get_field_content(0,"pOrgLeader",result);
    Spieler[playerid][pOrgLeader] = strval(result);
    cache_get_field_content(0,"pOrgMember",result);
    Spieler[playerid][pOrgMember] = strval(result);
    cache_get_field_content(0,"pLohn",result);
    Spieler[playerid][pLohn] = strval(result);
    cache_get_field_content(0,"WaitPerso",result);
    Spieler[playerid][WaitPerso] = strval(result);
    cache_get_field_content(0,"pMarried",result);
    strmid(Spieler[playerid][pMarried],result,0,strlen(result),sizeof(result));
    cache_get_field_content(0,"pBuyClothes",result);
    Spieler[playerid][pBuyClothes] = strval(result);
    cache_get_field_content(0,"pTsIdent",result);
    strmid(Spieler[playerid][pTsIdent],result,0,strlen(result),24);
    cache_get_field_content(0,"pIll",result);
    Spieler[playerid][pIll] = strval(result);
    cache_get_field_content(0,"pConterminatedTime",result);
    Spieler[playerid][pConterminatedTime] = strval(result);
    cache_get_field_content(0,"pBitchSkill",result);
    Spieler[playerid][pBitchSkill] = strval(result);
    cache_get_field_content(0,"pBitchFuckCount",result);
    Spieler[playerid][pBitchFuckCount] = strval(result);
    cache_get_field_content(0,"pMedicHealplayerSkill",result);
    Spieler[playerid][pMedicHealplayerSkill] = strval(result);
    cache_get_field_content(0,"pMedicHealCount",result);
    Spieler[playerid][pMedicHealCount] = strval(result);
    cache_get_field_content(0,"Geburtstag",result);
    format(Spieler[playerid][pGeburtstag], 11, result);


    stock AgeOfPlayer(playerid)
    {
    new DateInfo[3][20];
    split(Spieler[playerid][pGeburtstag],DateInfo,'.');
    getdate(jahr,monat,tag);
    new check = jahr - strval(DateInfo[2]);
    if(strval(DateInfo[1]) > monat)
    {
    check -= 1;
    }
    else if(strval(DateInfo[1]) == monat && strval(DateInfo[0]) > tag)
    {
    check -= 1;
    }
    return check;
    }
    strcat(query,"ALTER TABLE accounts ADD COLUMN (`pMarried` varchar(24) NOT NULL,`pBuyClothes` int(6) NOT NULL,`pTsIdent` varchar(32) NOT NULL,`pIll` int(10) NOT NULL,`pConterminatedTime` int(10) NOT NULL,`pBitchSkill` int(10) NOT NULL,`pBitchFuckCount` int(10) NOT NULL,`pMedicHealplayerSkill` int(10) NOT NULL,`pMedicHealCount` int(10) NOT NULL,`Geburtstag` varchar(11) NOT NULL)");


    stock SaveAccount(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid) && GetPVarInt(playerid,"Eingeloggt") == 1) //wir überprüfen ob der Spieler überhaupt noch Connected ist und ob er nicht ein NPC ist.
    {
    new mainquery[1256],query[400],Float:Pos[3];
    GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
    mysql_format(MySqlConnection,query,sizeof(query),"UPDATE accounts SET Online='0',Tutorial='%d',Admin='%d',Verwarnungen='%d',FLeaderRechte='%d',Fraktion='%d',FraktionsRang='%d',FraktionsSperre='%d',FraktionsGehalt='%d',Job='%d',JobWarns='%d',JobSperre='%d',ArbeitslosenGeld='%d',",
    Spieler[playerid][pViewTutorial],Spieler[playerid][pAdmin],Spieler[playerid][pWarns],Spieler[playerid][pLeader],Spieler[playerid][pFraktion],Spieler[playerid][pFraktRang],Spieler[playerid][pFraktionSperre],
    Spieler[playerid][pFraktionsGehalt],Spieler[playerid][pJob],Spieler[playerid][JobWarns],Spieler[playerid][pJobSperre],Spieler[playerid][pWorkLess]);
    strcat(mainquery,query);
    strdel(query,0,sizeof(query));
    mysql_format(MySqlConnection,query,sizeof(query),"Geschlecht='%d',SpielerAlter='%d',Level='%d',Geld='%d',GWD='%d',ZiviNote='%d',FAbteilung='%d',Bankguthaben='%d',BankPin='%d',WantedSterne='%d',WantedPunkte='%d',Suspects='%d',Wanted_Grund1='%s',Wanted_Grund2='%s',Wanted_Grund3='%s',Wanted_Grund4='%s',Wanted_Grund5='%s',",
    Spieler[playerid][pSex],Spieler[playerid][pYearsOld],GetPlayerLevel(playerid),GetACMoney(playerid),Spieler[playerid][pGrundwehrdienst],Spieler[playerid][pZiviNote],Spieler[playerid][pFraktABTInvite],Spieler[playerid][pBank],Spieler[playerid][pBankPin],GetPlayerWantedLevel(playerid),Spieler[playerid][pWantedPoints],Spieler[playerid][pSuspectPoints],
    pWantedReason1[playerid],pWantedReason2[playerid],pWantedReason3[playerid],pWantedReason4[playerid],pWantedReason5[playerid]);
    strcat(mainquery,query);
    strdel(query,0,sizeof(query));
    mysql_format(MySqlConnection,query,sizeof(query),"Crimes='%d',STVOcrimes='%d',KampfStyle='%d',Handy='%d',Handycoins='%d',HandyStatus='%d',HandyAkku='%f',HandyNummer='%d',Handyflat='%d',Handyflatbuyinbiz='%d',Letzte_X='%f',Letzte_Y='%f',Letzte_Z='%f',Letzte_Interior='%d',Letzte_VirtualWorld='%d',",
    Spieler[playerid][pLastSuspects],Spieler[playerid][pSTVOpoints],GetPlayerFightingStyle(playerid),Spieler[playerid][pHandy],Spieler[playerid][pHandyCoins],Spieler[playerid][pHandystate],Spieler[playerid][pHandyakku],Spieler[playerid][pPhonenumber],Spieler[playerid][pHandyFlat],Spieler[playerid][pHandyBuyByBiz],
    Pos[0],Pos[1],Pos[2],GetPlayerInterior(playerid),GetPlayerVirtualWorld(playerid));
    strcat(mainquery,query);
    strdel(query,0,sizeof(query));
    mysql_format(MySqlConnection,query,sizeof(query),"pSelectHome='%d',HausMieter='%d',Spawn='%d',Hotel='%d',Tod='%d',Tot_X='%f',Tot_Y='%f',Tot_Z='%f',Tot_Interior='%d',Tot_VirtualWorld='%d',TotZeit='%d',Friedhof='%d',FriedhofZeit='%d',ImKnast='%d',KnastZeit='%d',KnastKaution='%d' WHERE Name='%s'",
    Spieler[playerid][pSelectHome],Spieler[playerid][pRentHome],Spieler[playerid][pSpawn],Spieler[playerid][pHotel],Spieler[playerid][pDeath],Spieler[playerid][tot_x],Spieler[playerid][tot_y],Spieler[playerid][tot_z],Spieler[playerid][tot_int],Spieler[playerid][tot_world],Spieler[playerid][pDeathTime],Spieler[playerid][pFriedhof],Spieler[playerid][pFriedhofTime],
    Spieler[playerid][pJailed],Spieler[playerid][pJailTime],Spieler[playerid][pKaution],Spieler[playerid][pName]);
    strcat(mainquery,query);
    strdel(query,0,sizeof(query));
    mysql_function_query(MySqlConnection,mainquery,false,"","");
    strdel(mainquery,0,sizeof(mainquery));
    mysql_format(MySqlConnection,query,sizeof(query),"UPDATE accounts SET Muted='%d',MuteZeit='%d',ImPrison='%d',PrisonCPRun='%d',PrisonCPGive='%d',Morde='%d',Tode='%d',SkinID='%d',FraktionSkinID='%d',PaintBallKills='%d',PaintBallTode='%d',PaintBallRang='%d',PaintBallBesuche='%d',AngenommeneReports='%d',KopfGeld='%d',",
    Spieler[playerid][pMuted],Spieler[playerid][pMuteTime],Spieler[playerid][pInPrison],Spieler[playerid][pPrisonCPsgelaufen],Spieler[playerid][pPrisonCPsgegeben],Spieler[playerid][pMorde],Spieler[playerid][pTode],Spieler[playerid][pSkin],Spieler[playerid][pFraktSkin],Spieler[playerid][pPBKills],Spieler[playerid][pPBDeaths],
    Spieler[playerid][pPBRang],Spieler[playerid][pPBVisits],Spieler[playerid][Reports],Spieler[playerid][pHeadMoney]);
    strcat(mainquery,query);
    strdel(query,0,sizeof(query));
    mysql_format(MySqlConnection,query,sizeof(query),"pWantedDeaths='%d',pBuyTickets='%d',pJailedCount='%d',Bankkonto='%d',pArmyPlaneOrder='%d',pArmyHeliOrder='%d',pArmyWaffenOrder='%d',LevelUPKosten='%d',RespectForLevelUp='%d',RespectFromPayday='%d',TimeAfterRegister='%d' WHERE Name='%s'",
    Spieler[playerid][pWantedDeaths],Spieler[playerid][pBuyTickets],Spieler[playerid][pJailedCount],Spieler[playerid][pBankkonto],Spieler[playerid][pArmyPlaneOrder],Spieler[playerid][pArmyHeliOrder],Spieler[playerid][pArmyWaffenOrder],
    Spieler[playerid][pLevelKosten],Spieler[playerid][pRespektToLevelUp],Spieler[playerid][pRespektFromPayday],Spieler[playerid][pTimeAfterRegister],Spieler[playerid][pName]);
    strcat(mainquery,query);
    strdel(query,0,sizeof(query));
    mysql_function_query(MySqlConnection,mainquery,false,"","");
    strdel(mainquery,0,sizeof(mainquery));
    mysql_format(MySqlConnection,query,sizeof(query),"UPDATE accounts SET Time4Payday='%d',TimeoutCrashExeorKick='%d',HabGeworben='%d',pPremium='%d',GeworbenerSpieler='%s',pScheinSperre='%d',DigiHud='%d',Bonus='%d',",
    Spieler[playerid][pMinutesAfterPayday],Spieler[playerid][pAntiOfflineFlucht],Spieler[playerid][HatGeworben],Spieler[playerid][pPremium],Spieler[playerid][GeworbenPlaya],Spieler[playerid][pScheinSperre],Spieler[playerid][DigiHud],Spieler[playerid][pStartbonus]);
    strcat(mainquery,query);
    strdel(query,0,sizeof(query));
    mysql_format(MySqlConnection,query,sizeof(query),"pOrgLeader='%d',pOrgMember='%d',pLohn='%d',WaitPerso='%d',pMarried='%s',pBuyClothes='%d',pTsIdent='%s',pIll='%d',pConterminatedTime='%d',pBitchSkill='%d',pBitchFuckCount='%d',pMedicHealplayerSkill='%d',pMedicHealCount='%d',Geburtstag='%s' WHERE Name='%s'",
    Spieler[playerid][pOrgLeader],Spieler[playerid][pOrgMember],Spieler[playerid][pLohn],Spieler[playerid][WaitPerso],Spieler[playerid][pMarried],Spieler[playerid][pBuyClothes],Spieler[playerid][pTsIdent],Spieler[playerid][pIll],Spieler[playerid][pConterminatedTime],
    Spieler[playerid][pBitchSkill],Spieler[playerid][pBitchFuckCount],Spieler[playerid][pMedicHealplayerSkill],Spieler[playerid][pMedicHealCount],Spieler[playerid][pGeburtstag],Spieler[playerid][pName]);


    in der datenbank steht es drin

  • Denke wenn du einen Wert aus der DB lädst was eine Zahl sein soll muss die DB Spalte selbst einen INT gesetzt haben. Den Fehler hatte ich nähmlich mit meinem Haussystem auch und Jeffry hat mich drauf aufmerksam gemacht.

    Wer PALWAL-Sternchen vergibt, bekommt aus Prinzip ein Like 😏


    @palwal Donald Trump ist einer der besten Präsidenten welche die USA je hatte, meine Meinung.