es geht immer noch nicht
[21:11:10] [DEBUG] mysql_connect - host: "localhost", user: "root", database: "samp", password: "****", port: 3306, autoreconnect: true, pool_size: 2
[21:11:10] [DEBUG] CMySQLHandle::Create - creating new connection..
[21:11:10] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called
[21:11:10] [DEBUG] CMySQLHandle::Create - connection created (id: 1)
[21:11:10] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[21:11:10] [DEBUG] CMySQLConnection::Connect - connection was successful
[21:11:10] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[21:11:10] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[21:11:10] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[21:11:10] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[21:11:10] [DEBUG] CMySQLConnection::Connect - connection was successful
[21:11:10] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[21:11:10] [DEBUG] CMySQLConnection::Connect - connection was successful
[21:11:10] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[21:11:10] [DEBUG] CMySQLConnection::Connect - connection was successful
[21:11:10] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[21:11:31] [DEBUG] mysql_tquery - connection: 1, query: "SELECT id FROM user WHERE username='Test1234'", callback: "OnUserCheck", format: "d"
[21:11:31] [DEBUG] CMySQLQuery::Execute[OnUserCheck] - starting query execution
[21:11:31] [DEBUG] CMySQLQuery::Execute[OnUserCheck] - query was successfully executed within 0.396 milliseconds
[21:11:31] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[21:11:31] [DEBUG] Calling callback "OnUserCheck"..
[21:11:31] [DEBUG] cache_get_data - connection: 1
[21:11:31] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[21:11:37] [DEBUG] mysql_escape_string - source: "test1234", connection: 1, max_len: 35
[21:11:37] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM user WHERE username='Test1234' AND passwort='test1", callback: "OnPasswordResponse", format: "i"
[21:11:37] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse] - starting query execution
[21:11:37] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse] - query was successfully executed within 0.368 milliseconds
[21:11:37] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[21:11:37] [DEBUG] Calling callback "OnPasswordResponse"..
[21:11:37] [DEBUG] cache_get_data - connection: 1
[21:11:37] [DEBUG] cache_get_field_content_int - row: 0, field_name: "level", connection: 1
[21:11:37] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "level", data: "0"
[21:11:37] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Adminlevel", connection: 1
[21:11:37] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Adminlevel", data: "0"
[21:11:37] [DEBUG] cache_get_field_content_int - row: 0, field_name: "money", connection: 1
[21:11:37] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "money", data: "0"
[21:11:37] [DEBUG] cache_get_field_content_int - row: 0, field_name: "id", connection: 1
[21:11:37] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "10"
[21:11:37] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[21:11:41] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET Adminlevel='0' ,money='0' ,level='0',id='10' WHE", callback: "(null)", format: "(null)"
[21:11:41] [DEBUG] CMySQLQuery::Execute[] - starting query execution
[21:11:41] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.329 milliseconds
[21:11:41] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
[21:12:12] [DEBUG] mysql_tquery - connection: 1, query: "SELECT id FROM user WHERE username='hallo123'", callback: "OnUserCheck", format: "d"
[21:12:12] [DEBUG] CMySQLQuery::Execute[OnUserCheck] - starting query execution
[21:12:12] [DEBUG] CMySQLQuery::Execute[OnUserCheck] - query was successfully executed within 0.371 milliseconds
[21:12:12] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[21:12:12] [DEBUG] Calling callback "OnUserCheck"..
[21:12:12] [DEBUG] cache_get_data - connection: 1
[21:12:12] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[21:12:16] [DEBUG] mysql_escape_string - source: "test123", connection: 1, max_len: 35
[21:12:16] [DEBUG] mysql_tquery - connection: 1, query: "INSERT INTO user (username,passwort) VALUES ('hallo123','test123", callback: "OnPlayerRegister", format: "d"
[21:12:16] [DEBUG] CMySQLQuery::Execute[OnPlayerRegister] - starting query execution
[21:12:16] [DEBUG] CMySQLQuery::Execute[OnPlayerRegister] - query was successfully executed within 66.482 milliseconds
[21:12:16] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[21:12:16] [DEBUG] Calling callback "OnPlayerRegister"..
[21:12:16] [DEBUG] cache_insert_id - connection: 1
[21:12:16] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET Adminlevel='0' ,money='15000' ,level='1',id='11'", callback: "(null)", format: "(null)"
[21:12:16] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[21:12:16] [DEBUG] CMySQLQuery::Execute[] - starting query execution
[21:12:16] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.322 milliseconds
[21:12:16] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
[21:12:20] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET Adminlevel='0' ,money='15000' ,level='1',id='11'", callback: "(null)", format: "(null)"
[21:12:20] [DEBUG] CMySQLQuery::Execute[] - starting query execution
[21:12:20] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.324 milliseconds
[21:12:20] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
[21:12:48] [DEBUG] mysql_tquery - connection: 1, query: "SELECT id FROM user WHERE username='hallo123'", callback: "OnUserCheck", format: "d"
[21:12:48] [DEBUG] CMySQLQuery::Execute[OnUserCheck] - starting query execution
[21:12:48] [DEBUG] CMySQLQuery::Execute[OnUserCheck] - query was successfully executed within 0.357 milliseconds
[21:12:48] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[21:12:48] [DEBUG] Calling callback "OnUserCheck"..
[21:12:48] [DEBUG] cache_get_data - connection: 1
[21:12:48] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[21:12:52] [DEBUG] mysql_escape_string - source: "test123", connection: 1, max_len: 35
[21:12:52] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM user WHERE username='hallo123' AND passwort='test1", callback: "OnPasswordResponse", format: "i"
[21:12:52] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse] - starting query execution
[21:12:52] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse] - query was successfully executed within 0.418 milliseconds
[21:12:52] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[21:12:52] [DEBUG] Calling callback "OnPasswordResponse"..
[21:12:52] [DEBUG] cache_get_data - connection: 1
[21:12:52] [DEBUG] cache_get_field_content_int - row: 0, field_name: "level", connection: 1
[21:12:52] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "level", data: "0"
[21:12:52] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Adminlevel", connection: 1
[21:12:52] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Adminlevel", data: "0"
[21:12:52] [DEBUG] cache_get_field_content_int - row: 0, field_name: "money", connection: 1
[21:12:52] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "money", data: "0"
[21:12:52] [DEBUG] cache_get_field_content_int - row: 0, field_name: "id", connection: 1
[21:12:52] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "11"
[21:12:52] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[21:13:20] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET Adminlevel='0' ,money='0' ,level='0',id='11' WHE", callback: "(null)", format: "(null)"
[21:13:20] [DEBUG] CMySQLQuery::Execute[] - starting query execution
[21:13:20] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.323 milliseconds
[21:13:20] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
[21:13:22] [DEBUG] mysql_close - connection: 1
[21:13:22] [DEBUG] CMySQLConnection::Disconnect - connection was closed
[21:13:22] [DEBUG] CMySQLConnection::Disconnect - connection was closed
[21:13:22] [DEBUG] CMySQLConnection::Disconnect - connection was closed
[21:13:22] [DEBUG] CMySQLHandle::~CMySQLHandle - deconstructor calledpublic OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	//Login Register System
	if(dialogid == DIALOG_REGISTER)
	{
		{
			if(!response)
			{
				ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrierung","Registrierung war nicht erfolgreich\nBitte registrieren sie sich um auf dem Server zu spielen.","Absenden","Abbrechen");
				return 1;
			}
			{
				//eingegebenes Passwort
				new name[MAX_PLAYER_NAME],passwort[35],query[256];
				GetPlayerName(playerid,name,sizeof(name));
				if(strlen(inputtext)>3)
				{
					//registrierungsfunktion
					SetPlayerScore(playerid,1);
					sInfo[playerid][level] = 1;
					GivePlayerMoney(playerid,15000);
					sInfo[playerid][geld] = 15000;
					sInfo[playerid][eingeloggt] = 1;
					//
					mysql_escape_string(inputtext,passwort,dbhandle);
					format(query,sizeof(query),"INSERT INTO user (username,passwort) VALUES ('%s','%s')",name,inputtext);
					printf(query);
					mysql_function_query(dbhandle,query,false,"OnPlayerRegister","d",playerid);
					return 1;
				}
				else
				{
					return 1;
				}
			}
		}
	}
	if(dialogid == DIALOG_LOGIN)
	{
		if(!response)
		{
			new name[MAX_PLAYER_NAME],string[128],stringend[128];
			GetPlayerName(playerid,name,sizeof(name));
			format(string,sizeof(string),"{FFFFFF}Der Accountname {37CD00}%s {FFFFFF}wurde gefunden.\nUm mit den Spielen zu beginnen, musst du dich einloggen.\nDu hast die ID: {37CD00}%i\n",name,playerid);
			strcat(stringend,string);
			format(string,sizeof(string),"{FFFFFF}Bitte gebe unten dein Passwort ein.");
			strcat(stringend,string);
			ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{37CD00}Login System: {FFFFFF}Einloggen",stringend,"Login","Abbruch");
			strdel(stringend,0,sizeof(stringend));
			strdel(string,0,sizeof(string));
			return 1;
		}
		{
			new name[MAX_PLAYER_NAME],query[128],passwort[35];
			GetPlayerName(playerid,name,sizeof(name));
			if(strlen(inputtext)>0)
			{
				mysql_escape_string(inputtext,passwort,dbhandle);
				format(query,sizeof(query),"SELECT * FROM user WHERE username='%s' AND passwort='%s'",name,passwort);
				mysql_function_query(dbhandle,query,true,"OnPasswordResponse","i",playerid);
			}
			return 1;
		}
	}
	return 1;
}
 	forward OnPlayerRegister(playerid);
	public OnPlayerRegister(playerid)
	{
	sInfo[playerid][id] = cache_insert_id();
	savePlayer(playerid);
	return 1;
	}
 
		 
		
		
	