Login Problem

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
  • Tag,


    Ich habe etwas gescriptet und dann kam dieser Fehler wenn ich auch Login drückte...(Man kann dann nix mehr machen..) :



    Wie kann ich das beheben ?! Ich habe eigentlich nur paar Sachen reingemacht und danach wieder raus , aber das Problem wurde nicht behoben

    MFG

  • OnDialog :



    if(dialogid == DIALOG_LOGIN)
    {
    if(response && strlen(inputtext) > 0)
    {
    if(!strcmp(inputtext,mysql_ReturnPasswort(SpielerName(playerid)),true))
    {
    OnPlayerLogin(playerid);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Das Passwort ist nicht korrekt");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte versuche es erneut dich einzuloggen\nViel Spaß","Login","Abbrechen");
    }
    }
    else
    {
    Kick(playerid);
    }
    }


    Und dann noch der Stock OnPlayerLogin :



    stock OnPlayerLogin(playerid)
    {
    new tmp2[256];
    new string2[128];
    new playername2[MAX_PLAYER_NAME];
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    {
    {
    GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
    PlayerInfo[playerid][pLevel] = mysql_GetInt("accounts","Level", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAdmin] = mysql_GetInt("accounts","AdminLevel","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSupporter] = mysql_GetInt("accounts","Supporter", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pVIP] = mysql_GetInt("accounts","DonateRank", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][gPupgrade] = mysql_GetInt("accounts","UpgradePoints", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pConnectTime] = mysql_GetInt("accounts","ConnectedTime", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pReg] = mysql_GetInt("accounts","Registered", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSex] = mysql_GetInt("accounts","Sex", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAge] = mysql_GetInt("accounts","Alter", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pOrigin] = mysql_GetInt("accounts","Origin", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCK] = mysql_GetInt("accounts","CK", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMuted] = mysql_GetInt("accounts","Muted", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pExp] = mysql_GetInt("accounts","Respekt", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCash] = mysql_GetInt("accounts","Geld", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAccount] = mysql_GetInt("accounts","Bank", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPlayerKredit] = mysql_GetInt("accounts","Kredit", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPlayerKreditDauer] = mysql_GetInt("accounts","KreditDauer", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCrimes] = mysql_GetInt("accounts","Verbrechen", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pKills] = mysql_GetInt("accounts","Kills", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDeaths] = mysql_GetInt("accounts","Deaths", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pWantedDeaths] = mysql_GetInt("accounts","WantedDeaths","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPhoneBook] = mysql_GetInt("accounts","Telefonbuch","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLottoNr] = mysql_GetInt("accounts","LottoNr","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFishes] = mysql_GetInt("accounts","Fische","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pBiggestFish] = mysql_GetInt("accounts","BiggestFish","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pJob] = mysql_GetInt("accounts","Job","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPayCheck] = mysql_GetInt("accounts","PayCheck","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pJailed] = mysql_GetInt("accounts","Jailed","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pGangJailed] = mysql_GetInt("accounts","GangJailed","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMauled] = mysql_GetInt("accounts","Mauled","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pJailTime] = mysql_GetInt("accounts","JailTime","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMats] = mysql_GetInt("accounts","Material","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDrugs] = mysql_GetInt("accounts","Drogen","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pBoxMats] = mysql_GetInt("accounts","BMaterial","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pBoxDrugs] = mysql_GetInt("accounts","BDrogen","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLeader] = mysql_GetInt("accounts","Leader","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMember] = mysql_GetInt("accounts","Member","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFMember] = mysql_GetInt("accounts","FMember","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pRank] = mysql_GetInt("accounts","Rank","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pChar] = mysql_GetInt("accounts","Char","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pContractTime] = mysql_GetInt("accounts","ContractTime","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pContract] = mysql_GetInt("accounts","Contract","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDetSkill] = mysql_GetInt("accounts","DetSkill","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLawSkill] = mysql_GetInt("accounts","LawSkill","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPilotSkill] = mysql_GetInt("accounts","PilotSkill","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pBusSkill] = mysql_GetInt("accounts","BusSkill","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMechSkill] = mysql_GetInt("accounts","MechSkill","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pJackSkill] = mysql_GetInt("accounts","JackSkill","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCarSkill] = mysql_GetInt("accounts","CarSkill","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDrugsSkill] = mysql_GetInt("accounts","DrugsSkill","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCookSkill] = mysql_GetInt("accounts","CookSkill","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSHealth] = mysql_GetFloat("accounts","SHealth","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pHealth] = mysql_GetFloat("accounts","Health","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pInt] = mysql_GetInt("accounts","Interior","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLocal] = mysql_GetInt("accounts","Local","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTeam] = mysql_GetInt("accounts","Team","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pModel] = mysql_GetInt("accounts","Model","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPnumber] = mysql_GetInt("accounts","pPNumber","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPhousekey] = mysql_GetInt("accounts","House","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPbiskey] = mysql_GetInt("accounts","Bizz","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pHandyGeld] = mysql_GetInt("accounts","HandyGeld","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pHandyVer] = mysql_GetInt("accounts","HandyVer","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPos_x] = mysql_GetFloat("accounts","pPos_x","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPos_y] = mysql_GetFloat("accounts","pPos_x","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPos_z] = mysql_GetFloat("accounts","pPos_x","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCarLic] = mysql_GetInt("accounts","CarLic","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pNewLic] = mysql_GetInt("accounts","NewLic","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFlyLic] = mysql_GetInt("accounts","FlyLic","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pBoatLic] = mysql_GetInt("accounts","BoatLic","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFishLic] = mysql_GetInt("accounts","FishLic","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pGunLic] = mysql_GetInt("accounts","GunLic","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLKWLic] = mysql_GetInt("accounts","LKWLic","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pRollerLic] = mysql_GetInt("accounts","RollerLic","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMotoLic] = mysql_GetInt("accounts","MotoLic","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pZig] = mysql_GetInt("accounts","Zig","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pKekse] = mysql_GetInt("accounts","Kekse","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pZigSucht] = mysql_GetInt("accounts","ZigSucht","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCarTime] = mysql_GetInt("accounts","CarTime","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMulltime] = mysql_GetInt("accounts","MullTime","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPayDay] = mysql_GetInt("accounts","PayDay","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPayDayHad] = mysql_GetInt("accounts","PayDayHad","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCDPlayer] = mysql_GetInt("accounts","CDPlayer","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pWins] = mysql_GetInt("accounts","Wins","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLoses] = mysql_GetInt("accounts","Loses","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAlcoholPerk] = mysql_GetInt("accounts","AlcoholPerk","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDrugPerk] = mysql_GetInt("accounts","DrugPerk","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMiserPerk] = mysql_GetInt("accounts","MiserPerk","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMiserPerk] = mysql_GetInt("accounts","PainPerk","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTraderPerk] = mysql_GetInt("accounts","TraderPerk","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTut] = mysql_GetInt("accounts","Tutorial","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pWarns] = mysql_GetInt("accounts","Warns","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAdjustable] = mysql_GetInt("accounts","Adjustable","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFuel] = mysql_GetInt("accounts","Fuel","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMarried] = mysql_GetInt("accounts","Married","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMarriedTo] = mysql_GetInt("accounts","MarriedTo","Name",PlayerInfo[playerid][pName]);
    SpawnChange[playerid] = mysql_GetInt("accounts","SpawnChange","Name",PlayerInfo[playerid][pName]);
    WantedLevel[playerid] = mysql_GetInt("accounts","WantedLevel","Name",PlayerInfo[playerid][pName]);
    WantedPoints[playerid] = mysql_GetInt("accounts","WantedPoints","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPlayMinutes] = mysql_GetInt("accounts","PlayMinutes","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pGesamtMinutes] = mysql_GetInt("accounts","GesamtMinutes","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMinutesSinceAn] = mysql_GetInt("accounts","MinutesSinceAn","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSFPASS] = mysql_GetInt("accounts","SFPass","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLVPASS] = mysql_GetInt("accounts","LVPASS","Name",PlayerInfo[playerid][pName]);
    OfflineFlucht[playerid] = mysql_GetInt("accounts","OffFlucht","Name",PlayerInfo[playerid][pName]);
    Knast[playerid] = mysql_GetInt("accounts","Knast","Name",PlayerInfo[playerid][pName]);
    KnastTime[playerid] = mysql_GetInt("accounts","KnastTime","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pHandyID] = mysql_GetInt("accounts","Handy","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pUhrID] = mysql_GetInt("accounts","Uhr","Name",PlayerInfo[playerid][pName]);
    KnastTime[playerid] = mysql_GetInt("accounts","KnastTime","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pOwnPerso] = mysql_GetInt("accounts","Perso","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFrakSperre] = mysql_GetInt("accounts","FrakSperre","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pGehalt] = mysql_GetInt("accounts","Gehalt","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pInvWeapon] = mysql_GetInt("accounts","InvWeapon","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pInvAmmo] = mysql_GetInt("accounts","InvAmmo","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pInvWeapon2] = mysql_GetInt("accounts","InvWeapon2","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pInvAmmo2] = mysql_GetInt("accounts","InvAmmo2","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pInvMats] = mysql_GetInt("accounts","InvMats","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pInvDrugs] = mysql_GetInt("accounts","InvDrugs","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pGDeaths] = mysql_GetInt("accounts","gDeaths","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pGKills] = mysql_GetInt("accounts","gKills","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMeldung] = mysql_GetInt("accounts","Meldung","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPtankekey] = mysql_GetInt("accounts","Tanke","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pZollPass] = mysql_GetInt("accounts","Zollpass","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pZollPassTime] = mysql_GetInt("accounts","Zollpasstime","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPaket] = mysql_GetInt("accounts","Paket","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pGesperrt] = mysql_GetInt("accounts","Banned","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLPunkte] = mysql_GetInt("accounts","Punkte","Name",PlayerInfo[playerid][pName]);
    printf("Spielerdaten vom Spieler %s erfolgreich aus der Datenbank geladen",SpielerName(playerid));
    }//end while
    }
    PlayerInfo[playerid][pAdjustable] = 0;
    ResetPlayerMoney(playerid);
    ConsumingMoney[playerid] = 1;
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
    CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
    if(PlayerInfo[playerid][pReg] == 0)
    {
    PlayerInfo[playerid][pLevel] = 1;
    PlayerInfo[playerid][pSHealth] = 0.0;
    PlayerInfo[playerid][pHealth] = 99.0;
    PlayerInfo[playerid][pPos_x] = 2246.6;
    PlayerInfo[playerid][pPos_y] = -1161.9;
    PlayerInfo[playerid][pPos_z] = 1029.7;
    PlayerInfo[playerid][pInt] = 15;
    PlayerInfo[playerid][pLocal] = 255;
    PlayerInfo[playerid][pTeam] = 3;
    PlayerInfo[playerid][pModel] = 212;
    PlayerInfo[playerid][pPhousekey] = 255;
    PlayerInfo[playerid][pPbiskey] = 255;
    PlayerInfo[playerid][pAccount] = 5000;
    PlayerInfo[playerid][pReg] = 1;
    new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start
    PlayerInfo[playerid][pPnumber] = randphone;

    GivePlayerMoney(playerid, 10000);
    }
    if(PlayerInfo[playerid][pGesperrt] == 1)//PlayerInfo[playerid][pLevel] == -999) //autoban
    {
    format(string2,sizeof(string2)," %s versucht mit seinem gebannten Account online zu kommen und wurde gekickt!",playername2);
    ABroadCast(COLOR_LIGHTRED,string2,1);
    SendClientMessage(playerid,COLOR_RED," Du bist hier gebannt.. also mag dich hier keiner");
    SendClientMessage(playerid,COLOR_RED," und du hast keine Freunde :D haha NOOB ");
    Kick(playerid);
    return 1;
    }
    else if(PlayerInfo[playerid][pCK] > 0)
    {
    Kick(playerid);
    }
    format(string2, sizeof(string2), "Erfolgreich eingeloggt, Willkommen %s",playername2);
    SendClientMessage(playerid, COLOR_GREEN,string2);
    printf("%s has logged in.",playername2);
    if(PlayerInfo[playerid][pVIP] > 0)
    {
    SendClientMessage(playerid, COLOR_GREEN,"Du bist Premium Nutzer.");
    }
    if (PlayerInfo[playerid][pAdmin] > 0)
    {
    format(string2, sizeof(string2), "Willkommen Admin %d.",PlayerInfo[playerid][pAdmin]);
    SendClientMessage(playerid, COLOR_GREEN,string2);
    }
    if(PlayerInfo[playerid][pSupporter] > 0)
    {
    format(string2, sizeof(string2), "Willkommen Supporter %d.",PlayerInfo[playerid][pSupporter]);
    SendClientMessage(playerid, COLOR_GREEN,string2);
    }
    SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
    if(gTeam[playerid] == 0)
    {
    gTeam[playerid] = 3;
    }
    else
    {
    gTeam[playerid] = PlayerInfo[playerid][pTeam];
    }
    gPlayerLogged[playerid] = 1;
    SpawnPlayer(playerid);
    format(tmp2, sizeof(tmp2), "~w~Willkommen ~n~~y~ %s", playername2);
    DateProp(playerid);
    GameTextForPlayer(playerid, tmp2, 5000, 1);
    SendClientMessage(playerid, COLOR_YELLOW, motd);
    }
    if(OfflineFlucht[playerid] == 1 && WantedLevel[playerid] > 0)
    {
    SendClientMessage(playerid,COLOR_LIGHTRED, "* Du wurdest Eingesperrt weil du Offline-Flucht begangen hast!");
    SendClientMessage(playerid,COLOR_LIGHTRED, "* Pro WantedLevel 5 Minuten + 30 Minuten Strafe!");
    new sendername[MAX_PLAYER_NAME],string[100];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "*[Auto-Jail] %s wurde wegen Offline-Flucht eignesperrt.", sendername);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && IsADChatter(i))
    {
    SendClientMessage(i,COLOR_ALLDEPT,string);
    }
    }
    OfflineFlucht[playerid] = 0;
    ResetPlayerWeapons(playerid);
    new wlevel = WantedLevel[playerid];
    PlayerInfo[playerid][pJailed] = 1;
    PlayerInfo[playerid][pJailTime] = (wlevel*300)+1800;
    SetPlayerInterior(playerid, 3);
    if(LSPDZellen == 0)//zelle1
    {
    SetPlayerPos(playerid,219.4217,110.5207,999.0156);
    LSPDZellen += 1;
    }
    if(LSPDZellen == 1)//zelle2
    {
    SetPlayerPos(playerid,223.2922,110.6890,999.0156);
    LSPDZellen += 1;
    }
    if(LSPDZellen == 2)//zelle3
    {
    SetPlayerPos(playerid,215.0419,110.2922,999.0156);
    LSPDZellen = 0;
    }
    WantedPoints[playerid] = 0;
    SetPlayerWantedLevel(playerid,0);
    WantedLevel[playerid] = 0;
    }
    else if(OfflineFlucht[playerid] == 1 && WantedLevel[playerid] == 0)
    {
    SendClientMessage(playerid,COLOR_LIGHTRED, "* Du wurdest eingesperrt weil du Offline-Flucht begangen hast!");
    new sendername[MAX_PLAYER_NAME],string[100];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "*[Auto-Jail] %s wurde wegen Offline-Flucht eingesperrt.", sendername);



    Und noch bisschen mehr was es aber nicht sein kann.

    MFG

  • Ich werde aus deiner Klammersetzung irgendwie nicht schlau:



    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    {
    {
    GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
    PlayerInfo[playerid][pLevel] = mysql_GetInt("accounts","Level", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAdmin] = mysql_GetInt("accounts","AdminLevel","Name",PlayerInfo[playerid][pName]);
    //...
    printf("Spielerdaten vom Spieler %s erfolgreich aus der Datenbank geladen",SpielerName(playerid));
    }//end while
    }


    3x Klammer auf und 2x Klammer zu für ein if? Erklär mir das.


    Mfg,
    UncleSub

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen

  • if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    {
    {
    GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
    PlayerInfo[playerid][pLevel] = mysql_GetInt("accounts","Level", "Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAdmin] = mysql_GetInt("accounts","AdminLevel","Name",PlayerInfo[playerid][pName]);
    //...
    printf("Spielerdaten vom Spieler %s erfolgreich aus der Datenbank geladen",SpielerName(playerid));
    }//end while
    }


    Lösch mal die unnötigen Klammern..


    Mfg

  • Ich hatte mal das gleiche. Ich hatte mal 2 Probleme. Du hast ein Include vergessen einzufügen, z.B #include <dini> (nur beispiel, je nach dem was du jetzt benutzt)


    oder du hast die plugis vom include nicht in die Server.cfg reingeschrieben w/e

    <buqja>: brauche 3 mercs fürn 3o3

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen