Login/Register 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

  • PUBLIC:SetConnect(playerid)
    {
    if(IsPlayerNPC(playerid)){
    return 1;
    }
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    SetPlayerColor(playerid, COLOR_GRAD2);


    new VAR = 0;
    mysql_free_result(MySQLConnection);
    if(VAR == 0)
    {
    if(IsPlayerNPC(playerid)){
    return 1;
    }
    if(mysql_CheckAccount(playerid))
    {
    LoginScreen(playerid,0);
    gPlayerAccount[playerid] = 1;
    // LOGIN
    ShowPlayerDialog(playerid, Login, DIALOG_STYLE_PASSWORD, "Westbound-Reallife: Login", "Bitte gib zur Verifizierung deiner Person das Accountpasswort ein:","Login","Verlassen");
    LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
    TogglePlayerControllable(playerid,0);
    return 1;
    }
    else
    {
    if(strfind(playername, "*", true) != -1 || strfind(playername, "*", true) != -1)
    {
    ShowPlayerDialog(playerid,634,DIALOG_STYLE_MSGBOX,"Namen","Solche Namen werden auf unserem Server nicht Akzeptiert!\nBitte währe einen Namen und Connecte wieder auf den Server.","Bestätigen","");
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("ConnectKick", 2000,0,"i",playerid);
    }
    {
    if(disablereg == true)
    {
    LoginScreen(playerid,0);
    ShowPlayerDialog(playerid,636,DIALOG_STYLE_MSGBOX,"Registration Nachts ausgeschaltet","Hallo,\ndie Registartion ist Nachts von 0-8 Uhr geschlossen.\nDer Grund dafür sind Cheater etc.\nWir bitten um Verständnis!\n\nwww.westbound-reallife.de","Bestätigen","");
    SetTimerEx("ConnectKick", 700,0,"i",playerid);
    LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
    return 1;
    }
    }
    gPlayerAccount[playerid] = 0;
    ShowPlayerDialog(playerid, Register, DIALOG_STYLE_MSGBOX,"Westbound-Reallife: Registrierung","Willkommen auf Westbound Reallife!\n\nWie unser System erkannt hat hast du noch keinen Account.\nDu kannst dich nun bei uns Registrieren!","Registrieren","Verlassen");
    LoginScreen(playerid,0);
    LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
    return 1;
    }
    }
    return 1;
    }




    Hey ich hab eine Frage wen ich auf den Server Connecte Erscheint gleich das Login egal mit welchen Namen ich drauf gehe. Normal sollte man sich ja Registrieren.


  • [00:37:39] *** CreateDynamicObject: Expecting 11 parameter(s), but found 12
    [00:37:39] 3DTexte erfolgreich Geladen
    [00:37:39]
    [00:37:39]
    [00:37:39] Westbound-Reallife
    [00:37:39] _____________________
    [00:37:39] Westbound-Reallife erfolgreich geladen!
    [00:37:39]
    [00:37:39] Number of vehicle models: 61
    [00:37:39] [connection] 87.98.244.35:55484 requests connection cookie.
    [00:37:39] [connection] 87.98.244.35:60239 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:37517 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:39192 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:42474 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:48868 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:45384 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:49611 requests connection cookie.
    [00:37:40] [connection] incoming connection: 87.98.244.35:55484 id: 0
    [00:37:40] [connection] incoming connection: 87.98.244.35:60239 id: 1
    [00:37:41] [connection] incoming connection: 87.98.244.35:37517 id: 2
    [00:37:41] [npc:join] Drogendealer has joined the server (0:87.98.244.35)
    [00:37:41] [connection] incoming connection: 87.98.244.35:39192 id: 3
    [00:37:41] [npc:join] Mitarbeiter has joined the server (1:87.98.244.35)
    [00:37:41] [connection] incoming connection: 87.98.244.35:42474 id: 4
    [00:37:41] [npc:join] Coinshop has joined the server (2:87.98.244.35)


  • [00:16:27] [DEBUG] mysql_tquery - connection handle: 1
    [00:16:27] [ERROR] "mysql_tquery" - invalid connection handle. (ID = 1).
    [00:16:38] [DEBUG] mysql_tquery - connection handle: 1
    [00:16:38] [ERROR] "mysql_tquery" - invalid connection handle. (ID = 1).
    [00:20:02] [DEBUG] mysql_tquery - connection handle: 1
    [00:20:02] [DEBUG] mysql_tquery - scheduling query "SELECT id FROM user WHERE username='Blackshadowscript' "..
    [00:20:02] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - starting query execution
    [00:20:02] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - query was successful
    [00:20:02] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - data being passed to ProcessCallbacks()
    [00:20:02] [DEBUG] Calling callback "OnUserCheck"..
    [00:20:02] [DEBUG] cache_get_data - connection handle: 1
    [00:20:02] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:20:12] [DEBUG] mysql_escape_string - connection handle: 1
    [00:20:12] [DEBUG] mysql_tquery - connection handle: 1
    [00:20:12] [DEBUG] mysql_tquery - scheduling query "INSERT INTO user (username,passwort) VALUES ('Blackshadowscript',MD5('klom19pom')) "..
    [00:20:12] [DEBUG] CMySQLQuery::Execute[()] - starting query execution
    [00:20:12] [DEBUG] CMySQLQuery::Execute[()] - query was successful
    [00:20:12] [DEBUG] CMySQLQuery::Execute[()] - no callback specified, skipping result saving
    [00:20:18] [DEBUG] mysql_tquery - connection handle: 1
    [00:20:18] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM autos WHERE besitzer='0'"..
    [00:20:18] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - starting query execution
    [00:20:18] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - query was successful
    [00:20:18] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - data being passed to ProcessCallbacks()
    [00:20:18] [DEBUG] Calling callback "OnPlayerCarsLoad"..
    [00:20:18] [DEBUG] cache_get_data - connection handle: 1
    [00:20:18] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:21:01] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:01] [DEBUG] mysql_tquery - scheduling query "SELECT id FROM user WHERE username='Blackshadowscript' "..
    [00:21:01] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - starting query execution
    [00:21:01] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - query was successful
    [00:21:01] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - data being passed to ProcessCallbacks()
    [00:21:01] [DEBUG] Calling callback "OnUserCheck"..
    [00:21:01] [DEBUG] cache_get_data - connection handle: 1
    [00:21:01] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:21:09] [DEBUG] mysql_escape_string - connection handle: 1
    [00:21:09] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:09] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM user WHERE username='Blackshadowscript' AND passwort=MD5('klom19pom')"..
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse(i)] - starting query execution
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse(i)] - query was successful
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse(i)] - data being passed to ProcessCallbacks()
    [00:21:09] [DEBUG] Calling callback "OnPasswordResponse"..
    [00:21:09] [DEBUG] cache_get_data - connection handle: 1
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "level", data: "0"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "19"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "money", data: "0"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "alevel", data: "7"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "fraktion", data: "0"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "rang", data: "0"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "spawnchange", data: "0"
    [00:21:09] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:09] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM autos WHERE besitzer='19'"..
    [00:21:09] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - starting query execution
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - query was successful
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - data being passed to ProcessCallbacks()
    [00:21:09] [DEBUG] Calling callback "OnPlayerCarsLoad"..
    [00:21:09] [DEBUG] cache_get_data - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:21:41] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:41] [DEBUG] mysql_tquery - scheduling query "UPDATE user SET level='0',money='0',alevel='7',fraktion='1',rang='6',spawnchange='0' WHERE id='19'"..
    [00:21:41] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:41] [DEBUG] CMySQLQuery::Execute[()] - starting query execution
    [00:21:41] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM autos WHERE besitzer='0'"..
    [00:21:41] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - starting query execution
    [00:21:41] [DEBUG] CMySQLQuery::Execute[()] - query was successful
    [00:21:41] [DEBUG] CMySQLQuery::Execute[()] - no callback specified, skipping result saving
    [00:21:41] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - query was successful
    [00:21:41] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - data being passed to ProcessCallbacks()
    [00:21:41] [DEBUG] Calling callback "OnPlayerCarsLoad"..
    [00:21:41] [DEBUG] cache_get_data - connection handle: 1
    [00:21:41] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called



    Hab den log gefunden :>