Beiträge von Mr.Undercover

    Wie?


    new query[200];
    format(query, sizeof(query), "UPDATE `accounts` SET `Pos_x` = '%f',`Pos_y` = '%f',`Pos_z` = '%f' WHERE `Name` = '%s'",
    PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z],SpielerName(playerid));
    mysql_query(query);

    So speicher ich das

    Hey,
    Ich habe das WoS GF und wollte das man dort spawnt wo man sich Ausloggt
    Nun ist es so das ich bei OnPlayerDisconnect

    GetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
    Dann habe ich alles bei spawnen und und alles SetplayerSpawn
    Gelöscht und das eingefügt


    SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
    Aber ich Spawn imme rnoch am dem bauernhof
    Danke im Vorraus

    Hey,
    Wenn ich in meiner MySQL Datenbank
    bespiel
    Das

    SQL
    `FishSkill` int(11) NOT NULL DEFAULT '1',


    zu das machen

    SQL
    `FishSkill` int(11) NOT NULL DEFAULT 'o',


    Geht es nicht warum nicht??
    Weil ich möchte das wenn man einen neuen Account bekommt alles auf Null ist
    Danke Im Vorraus
    MfG

    Hey,
    Ich habe ein Script was ich bisher nur bei mir Locelhost getestet habe
    Nun wollte ich es auf einen Server Packen und es dort mit anderen Testen
    Nun wird mein MySQL Plugin allerdings nicht geladen und dort steht
    Das hier aber ich weiß nicht was sie damit meinen



    Wenn jemand weiß wie ich das Problem beheber wäre ihr im sehr dankbar
    MfG

    Hey,
    Bei mir in den Logs sind alle sachen die dort Rein geschrieben werden
    Neben einander
    Aber ich habe in der Function HeilLog \n
    Function HeilLog(string[])
    {
    new entry[256];
    format(entry, sizeof(entry), "\n %s \n",string);
    new File:hFile;
    hFile = fopen("Logs/Heilen.Log", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
    }
    Danke Im Voraus

    Hey,
    Irgendwie wird bei mir der Spieler nicht gespeichert
    Ich habe eine SQl angelegt
    Alles gescriptet
    Aber der Spieler wird einfach nicht gespeichert


    Die Stocks

    stock Connect_To_Database()
    {
    mysql_connect(SQL_HOST, SQL_USER, SQL_DATA, SQL_PASS); /
    if(mysql_ping() == 1)
    {
    print("<-| [MYSQL] Verbindung zur Datenbank wurde erfolgreich hergestellt!");
    return true;
    }
    else
    {
    print("<-| [MYSQL] Es konnte keine Verbindung zur Datenbank hergestellt werden!");
    print("<-| [MYSQL] Es wird erneut versucht eine Verbindung zur Datenbank herzustellen!");
    mysql_connect(SQL_HOST, SQL_USER, SQL_DATA, SQL_PASS);
    if(mysql_ping() == 1)
    {
    print("<-| [MYSQL] Es konnte im 2 Versuch eine Verbindung hergestellt werden!");
    return true;
    }
    else
    {
    print("<-| [MYSQL] Es konnte keine Verbindung zur Datenbank hergestellt werden!");
    print("<-| [MYSQL] Der Server wird nun beendet!");
    SendRconCommand("exit");
    return true;
    }
    }
    }
    stock mysql_CheckAccount(playerid)
    {
    new Query[128],Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    mysql_real_escape_string(Name, Name);
    format(Query, sizeof(Query), "SELECT * FROM accounts WHERE Name = '%s'", Name);
    mysql_query(Query);
    mysql_store_result();
    return mysql_num_rows();
    }


    stock CreateAccount(playerid, pass[])
    {
    new query[256],Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    mysql_real_escape_string(Name,Name);
    mysql_real_escape_string(pass,pass);
    format(query, sizeof(query), "INSERT INTO accounts (Name, Passwort) VALUES ('%s', md5('%s'))", Name, pass);
    mysql_query(query);
    return true;
    }
    stock mysql_ReturnPasswort(Name[])
    {
    new query[130], Get[130];
    mysql_real_escape_string(Name, Name);
    format(query, 128, "SELECT passwort FROM accounts WHERE Name = '%s'", Name);
    mysql_query(query);
    mysql_store_result();
    mysql_fetch_row(Get);
    mysql_free_result();
    return Get;
    }
    stock LoadPlayer(playerid)
    {
    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", "AdminRang", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSupporter] = mysql_GetInt("accounts", "Supporter", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDonateRank] = mysql_GetInt("accounts", "DonateRank", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][gPupgrade] = mysql_GetInt("accounts", "Pupgrade", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pConnectTime] = mysql_GetInt("accounts", "ConnectTime", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pReg] = mysql_GetInt("accounts", "Reg", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSex] = mysql_GetInt("accounts", "Sex", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAge] = mysql_GetInt("accounts", "Age", "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", "Exp", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCash] = mysql_GetInt("accounts", "Cash", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAccount] = mysql_GetInt("accounts", "Account", "Name", PlayerInfo[playerid][pName]);

    PlayerInfo[playerid][pPlayerKreditDauer] = mysql_GetInt("accounts",
    "PlayerKeditDauer", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPlayerKredit] = mysql_GetInt("accounts", "PlayerKedit", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pCrimes] = mysql_GetInt("accounts", "Crimes", "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][pArrested] = mysql_GetInt("accounts", "Arrested", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pWantedDeaths] = mysql_GetInt("accounts", "WantedDeaths", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPhoneBook] = mysql_GetInt("accounts", "PhoneBook", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLottoNr] = mysql_GetInt("accounts", "LottoNr", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFishes] = mysql_GetInt("accounts", "Fishes", "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][pRest] = mysql_GetInt("accounts", "Rest", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pHeadValue] = mysql_GetInt("accounts", "HeadValue", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pJailed] = mysql_GetInt("accounts", "Jailed", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pJailTime] = mysql_GetInt("accounts", "JailTime", "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][pMats] = mysql_GetInt("accounts", "Mats", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDrugs] = mysql_GetInt("accounts", "Drugs", "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", "ConnectTime", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDetSkill] = mysql_GetInt("accounts", "DetSkill", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSexSkill] = mysql_GetInt("accounts", "SexSkill", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pBoxSkill] = mysql_GetInt("accounts", "BoxSkill", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLawSkill] = mysql_GetInt("accounts", "LawSkill", "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][pNewsSkill] = mysql_GetInt("accounts", "NewsSkill", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDrugsSkill] = mysql_GetInt("accounts", "DrugSkilk", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFishSkill] = mysql_GetInt("accounts", "FishSkill", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pHealth] = mysql_GetInt("accounts", "Health", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSHealth] = mysql_GetInt("accounts", "SHealth", "Name", PlayerInfo[playerid][pName]);
    //mehr aber hat zuviele zeichen
    }
    return 1;
    }


    stock SavePlayer(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 1)
    {
    mysql_SetInt("accounts", "Level", PlayerInfo[playerid][pLevel], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Admin", PlayerInfo[playerid][pAdmin], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Supporter", PlayerInfo[playerid][pSupporter], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "DonateRank", PlayerInfo[playerid][pDonateRank], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Pupgrade", PlayerInfo[playerid][gPupgrade], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "ConnectTime", PlayerInfo[playerid][pConnectTime], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Reg", PlayerInfo[playerid][pReg], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Sex", PlayerInfo[playerid][pSex], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Age", PlayerInfo[playerid][pAge], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Origin", PlayerInfo[playerid][pOrigin], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "CK", PlayerInfo[playerid][pCK], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Muted", PlayerInfo[playerid][pMuted], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Exp", PlayerInfo[playerid][pExp], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Cash", PlayerInfo[playerid][pCash], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Account", PlayerInfo[playerid][pAccount], "Name", PlayerInfo[playerid][pName]);

    mysql_SetInt("accounts", "PlayerKeditDauer",
    PlayerInfo[playerid][pPlayerKreditDauer], "Name",
    PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "PlayerKedit", PlayerInfo[playerid][pPlayerKredit], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Crimes", PlayerInfo[playerid][pCrimes], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Kills", PlayerInfo[playerid][pKills], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Deaths", PlayerInfo[playerid][pDeaths], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Arrested", PlayerInfo[playerid][pArrested], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "WantedDeaths", PlayerInfo[playerid][pWantedDeaths], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "PhoneBook", PlayerInfo[playerid][pPhoneBook], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "LottoNr", PlayerInfo[playerid][pLottoNr], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Fishes", PlayerInfo[playerid][pFishes], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "BiggestFish", PlayerInfo[playerid][pBiggestFish], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Job", PlayerInfo[playerid][pJob], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "PayCheck", PlayerInfo[playerid][pPayCheck], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Rest", PlayerInfo[playerid][pRest], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "HandyValue", PlayerInfo[playerid][pHeadValue], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Jailed", PlayerInfo[playerid][pJailed], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "JailTime", PlayerInfo[playerid][pJailTime], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "GangJailed", PlayerInfo[playerid][pGangJailed], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Mauled", PlayerInfo[playerid][pMauled], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Mats", PlayerInfo[playerid][pMats], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Dugs", PlayerInfo[playerid][pDrugs], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Leader", PlayerInfo[playerid][pLeader], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Member", PlayerInfo[playerid][pMember], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "FMember", PlayerInfo[playerid][pFMember], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Rank", PlayerInfo[playerid][pRank], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Char", PlayerInfo[playerid][pChar], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "ContractTime", PlayerInfo[playerid][pContractTime], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "DetSkill", PlayerInfo[playerid][pDetSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "SexSkill", PlayerInfo[playerid][pSexSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "BoxSkill", PlayerInfo[playerid][pBoxSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "LawSkill", PlayerInfo[playerid][pLawSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "MechSkill", PlayerInfo[playerid][pMechSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "JackSkill", PlayerInfo[playerid][pJackSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "CarSkill", PlayerInfo[playerid][pCarSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "NewsSkill", PlayerInfo[playerid][pNewsSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "DrugsSkill", PlayerInfo[playerid][pDrugsSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accounts", "FishSkill", PlayerInfo[playerid][pFishSkill], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("accounts", "Health", PlayerInfo[playerid][pHealth], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("accounts", "SHealth", PlayerInfo[playerid][pSHealth], "Name", PlayerInfo[playerid][pName]);
    //Hat noch mehr aber zuviel zeichen
    }
    }
    return 1;
    }


    Die Dialoge
    switch(dialogid)
    {
    case DIALOG_REG:
    {
    if(response)
    {
    if(strlen(inputtext) == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_INPUT,"{FFFFFF}Registrierung","{FFFFFF}Das eingegebene Passwort war zu {FF9600}kurz{FFFFFF}...\nBitte registrieren Sie sich jetzt mit Ihrem Passwort:","Registrieren","Abbrechen");
    return 1;
    }
    else
    {
    CreateAccount(playerid, inputtext);
    SetPVarInt(playerid,"Eingeloggt",1);
    SetSpawnInfo(playerid,0,PlayerInfo[playerid][pChar], 0.0,0.0,0.0,0.0,0,0,0,0,0,0); SpawnPlayer(playerid);
    SendClientMessage(playerid,WEISS,"System: Ihr Account wurde erfolreich erstellt.");
    LoadPlayer(playerid);
    return 1;
    }
    }
    else
    {
    Kick(playerid);
    }
    }
    case DIALOG_LOGIN:
    {
    if(response)
    {
    if(strlen(inputtext) == 0)
    {
    if(LoginVersuch[playerid] == LOGINVERSUCHE - 1)
    {
    ShowPlayerDialog(playerid,DIALOG_LOGINFEHLER,DIALOG_STYLE_MSGBOX,"{FFFFFF}Login Fehler","{FFFFFF}Sie haben zu oft das {A50000}falsche{FFFFFF} Passwort eingegeben.\nDaher wurden Sie von dem Server {A50000}gekickt{FFFFFF}.","Bestätigen","");
    Kick(playerid);
    return 1;
    }
    else
    {
    new string[128];
    LoginVersuch[playerid] ++; //Versuche werden geadded
    format(string,sizeof(string),"{FFFFFF}Das angegebene Passwort war {A50000}falsch{FFFFFF}.\nSie haben noch {FF9600}%d/3{FFFFFF} Versuche.\nBitte logen Sie sich jetzt mit dem richtigen Passwort ein:",LOGINVERSUCHE - LoginVersuch[playerid]);
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"{FFFFFF}Login",string,"Einloggen","Abbrechen");
    return 1;
    }
    }
    else
    {
    if(!strcmp(MD5_Hash(inputtext), mysql_ReturnPasswort(SpielerName(playerid)), true))
    {
    //Lädt erst Daten und checkt dann
    LoadPlayer(playerid);
    SetPVarInt(playerid,"Eingeloggt",1);
    SetSpawnInfo(playerid,0,PlayerInfo[playerid][pChar], 0.0,0.0,0.0,0.0,0,0,0,0,0,0); SpawnPlayer(playerid);
    SendClientMessage(playerid,WEISS,"System: Sie haben sich erfolgreich eingeloggt.");
    SetTimerEx("Zahltag",60000,0,"i",playerid);
    /*if(PayChecker[playerid] >= 1)
    {
    new string[128];
    SendClientMessage(playerid,GELB,"------> WARNUNG PAYDAY <------");
    format(string, 512, "Sie sind während eines Payday offline gegangen der Code lautet: %d", PaydayCode[playerid]);
    SendClientMessage(playerid,GELB,string);
    SendClientMessage(playerid,GELB,"Sie haben max. 1-3Minuten Zeit um Ihn zu aktivieren, mit /payday [Eingabefenster]");
    SendClientMessage(playerid,GELB,"ansonsten werden sie gekickt und die Zeit auf 30min resetet.");
    SendClientMessage(playerid,GELB,"--------------------------");
    }*/
    /////////////////////////////////
    }
    else
    {
    if(LoginVersuch[playerid] == LOGINVERSUCHE - 1)
    {
    ShowPlayerDialog(playerid,DIALOG_LOGINFEHLER,DIALOG_STYLE_MSGBOX,"{FFFFFF}Login Fehler","{FFFFFF}Sie haben zu oft das {A50000}falsche{FFFFFF} Passwort eingegeben.\nDaher wurden Sie von dem Server {A50000}gekickt{FFFFFF}.","Bestätigen","");
    Kick(playerid);
    return 1;
    }
    else
    {
    new string[128];
    LoginVersuch[playerid] ++; //Versuche werden geadded
    format(string,sizeof(string),"{FFFFFF}Das angegebene Passwort war {A50000}falsch{FFFFFF}.\nSie haben noch {FF9600}%d/3{FFFFFF} Versuche.\nBitte loggen Sie sich jetzt mit Ihrem richtigen Passwort ein:",LOGINVERSUCHE - LoginVersuch[playerid]);
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"{FFFFFF}Login",string,"Einloggen","Abbrechen");
    return 1;
    }
    }
    }
    }
    else
    {
    Kick(playerid);
    }
    }
    }
    und halt die account besitz abfrage


    if(GetPVarInt(playerid,"Eingeloggt") == 0) //Als erstes fragen wir ab ob der Spieler schon eingeloggt ist oder nicht, damit wir nicht bei jeder Skin auswahl uns neu Einloggen müssen.
    {
    if(mysql_CheckAccount(playerid) == 0)//Wir überprüfen ob der Account Existiert, falls nicht Zeigen wir den Dialog zum Registrieren.
    {
    format(string,sizeof(string),"{FFFFFF}Herzlich Willkommen, {FF9600}%s{FFFFFF}!\nDer Server %s wünscht ihnen einen schönen Aufenthalt\nwir freuen uns das Sie sich hier registieren wollen.\nDa Sie {A50000}keinen Account{FFFFFF} auf diesem Server haben müssen Sie sich ein Passwort zulegen.\nAccount Passwort anlegen:",SpielerName(playerid),SERVERNAME);
    ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_INPUT,"{FFFFFF}Registrierung",string,"Registrieren","Abbrechen");
    }
    else if(mysql_CheckAccount(playerid) == 1)//Falls doch zeigen wir den Dialog zum Einloggen.
    {
    format(string,sizeof(string),"{FFFFFF}Herzlich Willkommen zurück, {FF9600}%s{FFFFFF}!\nDer Server %s wünscht ihnen einen schönen Aufenthalt\nIhr Account wurde in der Datenbank gefunden.\nWir wünschen Ihnen einen schönen Aufenthalt.\nGeben Sie nun Ihr Passwort ein:",SpielerName(playerid),SERVERNAME);
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"{FFFFFF}Login",string,"Einloggen","Abbrechen");
    }
    }


    Danke im vorraus
    Würde mich freuen wenn ihr den fehler findet
    Da ich seit gestern am Suchen bin
    Mit freundlichen Grüßen

    Hey,
    Bei mir kommen diese Warnings u. Errors??


    C:\Users\Nils\Desktop\Selfmade\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding level
    C:\Users\Nils\Desktop\Selfmade\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding level
    C:\Users\Nils\Desktop\Selfmade\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding level
    C:\Users\Nils\Desktop\Selfmade\pawno\include\foXban.inc(26) : error 017: undefined symbol "Time"
    C:\Users\Nils\Desktop\Selfmade\pawno\include\foXban.inc(29) : error 017: undefined symbol "Time"
    C:\Users\Nils\Desktop\Selfmade\pawno\include\foXban.inc(47) : error 017: undefined symbol "Time"
    C:\Users\Nils\Desktop\EER Server\gamemodes\hd.pwn(49331) : warning 219: local variable "GetName" shadows a variable at a preceding level
    C:\Users\Nils\Desktop\EER Server\gamemodes\hd.pwn(51113) : warning 203: symbol is never used: "M_OnPlayerUpdate"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.