Guten Tag.
Wir hatten bereits 2 mal das Problem das unser Server ausging.
Einmal bei unserem Scripter selbst auf dem localhost und auf unserem Haupt-Server
Wir wissen leider nicht woran es liegen könte aber immer wenn wir uns eingeloggt haben (registration ging, aber nach der registration komt bei uns das login fenster)
ist der Server gecrasht.
Erst nachdem der Owner die Datenbank geleert hat, ging wieder alles.
Kann uns jemand helfen?
Der Scripter hat mir folgendes gegeben, damit ihr mal drüber schauen könnt.
stock LoadPlayer(playerid, inputtext[])
{
new hash[129], query[128], savingstring[128];
WP_Hash(hash, sizeof(hash), inputtext);
format(query, sizeof(query), "SELECT * FROM `accounts` WHERE `Name` = '%s'", GetName(playerid));
mysql_query(query);
mysql_store_result();
if(IsPlayerConnected(playerid))
{
if(!strcmp(hash, mysql_ReturnPasswort(GetName(playerid)), true))
{
while(mysql_fetch_row_format(query,"|"))
{
mysql_fetch_field_row(savingstring, "Level"); Spieler[playerid][pLevel] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Admin"); Spieler[playerid][pAdmin] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Cash"); Spieler[playerid][pCash] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Tutorial"); Spieler[playerid][pTutorial] = strval(savingstring);
mysql_fetch_field_row(savingstring, "AccountLocked"); Spieler[playerid][pAccountLocked] = strval(savingstring);
mysql_fetch_field_row(savingstring, "SpawnHealth"); Spieler[playerid][pSpawnHealth] = floatstr(savingstring);
mysql_fetch_field_row(savingstring, "Geschlecht"); Spieler[playerid][pGeschlecht] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Skin"); Spieler[playerid][pSkin] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Perso"); Spieler[playerid][pPerso] = strval(savingstring);
mysql_fetch_field_row(savingstring, "CarLic"); Spieler[playerid][pCarLic] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Fraktion"); Spieler[playerid][pFraktion] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Rank"); Spieler[playerid][pRank] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Tot"); Spieler[playerid][pTot] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Job"); Spieler[playerid][pJob] = strval(savingstring);
mysql_fetch_field_row(savingstring, "JobCount"); Spieler[playerid][pJobCount] = strval(savingstring);
mysql_fetch_field_row(savingstring, "JobTime"); Spieler[playerid][pJobTime] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Jailed"); Spieler[playerid][pJailed] = strval(savingstring);
mysql_fetch_field_row(savingstring, "JailTime"); Spieler[playerid][pJailTime] = strval(savingstring);
mysql_fetch_field_row(savingstring, "JailType"); Spieler[playerid][pJailType] = strval(savingstring);
mysql_fetch_field_row(savingstring, "TotUnix"); Spieler[playerid][pTotUnix] = strval(savingstring);
mysql_fetch_field_row(savingstring, "TotX"); Spieler[playerid][pTotX] = floatstr(savingstring);
mysql_fetch_field_row(savingstring, "TotY"); Spieler[playerid][pTotY] = floatstr(savingstring);
mysql_fetch_field_row(savingstring, "TotZ"); Spieler[playerid][pTotZ] = floatstr(savingstring);
mysql_fetch_field_row(savingstring, "Wanteds"); Spieler[playerid][pWanteds] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Deaths"); Spieler[playerid][pDeaths] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Kills"); Spieler[playerid][pKills] = strval(savingstring);
mysql_fetch_field_row(savingstring, "JobMoney"); Spieler[playerid][pJobMoney] = strval(savingstring);
mysql_fetch_field_row(savingstring, "PayDayTime"); Spieler[playerid][pPayDayTime] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Exp"); Spieler[playerid][pExp] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Married"); Spieler[playerid][pMarried] = strval(savingstring);
mysql_fetch_field_row(savingstring, "MarriedTo"); strdel(Spieler[playerid][pMarriedTo], 0, MAX_PLAYER_NAME); strmid(Spieler[playerid][pMarriedTo], savingstring, 0, MAX_PLAYER_NAME);
mysql_fetch_field_row(savingstring, "PlayingTime"); Spieler[playerid][pPlayingTime] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Bank"); Spieler[playerid][pBank] = strval(savingstring);
mysql_fetch_field_row(savingstring, "FrakLohn"); Spieler[playerid][pFrakLohn] = strval(savingstring);
mysql_fetch_field_row(savingstring, "StaatsLohn"); Spieler[playerid][pStaatsLohn] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Muted"); Spieler[playerid][pMuted] = strval(savingstring);
mysql_fetch_field_row(savingstring, "MuteTime"); Spieler[playerid][pMuteTime] = strval(savingstring);
mysql_fetch_field_row(savingstring, "HandyNr"); Spieler[playerid][pHandyNr] = strval(savingstring);
mysql_fetch_field_row(savingstring, "HandyCoins"); Spieler[playerid][pHandyCoins] = strval(savingstring);
mysql_fetch_field_row(savingstring, "PhoneBook"); Spieler[playerid][pPhoneBook] = strval(savingstring);
mysql_fetch_field_row(savingstring, "LSD"); Spieler[playerid][pLSD] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Koks"); Spieler[playerid][pKoks] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Marihuana"); Spieler[playerid][pMarihuana] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Donuts"); Spieler[playerid][pDonuts] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Fische"); Spieler[playerid][pFische] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Lotto"); Spieler[playerid][pLotto] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Pfandflaschen"); Spieler[playerid][pPfandflaschen] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Warns"); Spieler[playerid][pWarns] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Verbrechen"); Spieler[playerid][pVerbrechen] = strval(savingstring);
mysql_fetch_field_row(savingstring, "UpgradePoints"); Spieler[playerid][pUpgradePoints] = strval(savingstring);
mysql_fetch_field_row(savingstring, "XMasUnix"); Spieler[playerid][pXMasUnix] = strval(savingstring);
}
mysql_free_result();
}
else
{
strdel(DialogString, 0, sizeof(DialogString));
format(DialogString, sizeof(DialogString), COLOR_HEX_YELLOW"Falsches Passwort!\n\n"COLOR_HEX_WHITE"Willkommen auf "GAMEMODE_NAME", "COLOR_HEX_LIGHTBLUE"%s"COLOR_HEX_WHITE"!\n", GetName(playerid));
strcat(DialogString, COLOR_HEX_LIGHTGREEN"Dein Account wurde in unserer Datenbank gefunden!\n");
strcat(DialogString, COLOR_HEX_WHITE"Bitte denke immer daran, dass du dein Passwort niemals an jegliche Spieler oder Team-Mitglieder weiter gibst!\n");
strcat(DialogString, COLOR_HEX_WHITE"Falls du jemanden siehst, oder du selbst davon betroffen bist, dass jemand Passwörter haben möchte, so kontaktiere die Server-Leitung!\n");
strcat(DialogString, COLOR_HEX_WHITE"Bitte gebe nun dein Passwort ein:");
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, COLOR_HEX_LIGHTGREEN""GAMEMODE_NAME": "COLOR_HEX_WHITE"Login", DialogString, "Einloggen", "Beenden");
return 1;
}
SetPlayerScore(playerid, Spieler[playerid][pLevel]);
TextDrawHideForPlayer(playerid, LoginScreen[0]);
TextDrawHideForPlayer(playerid, LoginScreen[1]);
TextDrawHideForPlayer(playerid, LoginScreen[2]);
TextDrawHideForPlayer(playerid, LoginScreen[3]);
TextDrawHideForPlayer(playerid, LoginScreen[5]);
TextDrawHideForPlayer(playerid, LoginScreen[4]);
TextDrawHideForPlayer(playerid, LoginScreen[6]);
if(Spieler[playerid][pAccountLocked] == 1)
{
strdel(DialogString, 0, sizeof(DialogString));
format(DialogString, sizeof(DialogString), COLOR_HEX_WHITE"Hallo, "COLOR_HEX_LIGHTGREEN"%s"COLOR_HEX_WHITE".\n", GetName(playerid));
strcat(DialogString, COLOR_HEX_WHITE"Dein Account wurde vorübergehend von der Administration gesperrt.\n");
strcat(DialogString, COLOR_HEX_WHITE"Wenn du wieder mit deinem Account spielen möchtest, dann melde dich bitte im Forum.\n");
strcat(DialogString, COLOR_HEX_WHITE"Denke aber bitte daran, dass die IP-Adresse dieses Account's mit der IP-Adresse im Forum verglichen wird.\n");
strcat(DialogString, COLOR_HEX_WHITE"Sollte es der Fall sein, und es ist nicht die selbe IP-Adresse, können wir leider nichts machen.\n");
strcat(DialogString, COLOR_HEX_WHITE"Vielen Dank für deine Kooperation - "COLOR_HEX_LIGHTGREEN"Liebe Grüße, das "GAMEMODE_NAME" Team"COLOR_HEX_WHITE"!");
ShowPlayerDialog(playerid, DIALOG_ACCLOCKED, DIALOG_STYLE_MSGBOX, COLOR_HEX_LIGHTGREEN""GAMEMODE_NAME": "COLOR_HEX_WHITE"Account gesperrt", DialogString, "", "");
Kick(playerid);
return 1;
}
if(Spieler[playerid][pHandyNr] == 0)
{
Spieler[playerid][pHandyNr] = random(89999999)+10000000; //Handynummer mit 8 Ziffern
}
Spieler[playerid][pLoggedIn] = 1;
GivePlayerCash(playerid, Spieler[playerid][pCash]);
gOOC[playerid] = 1;
gFunk[playerid] = 1;
gRadio[playerid] = 1;
gDepartment[playerid] = 1;
gFamily[playerid] = 1;
Spieler[playerid][pHandyState] = 1;
SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayerEx(playerid);
SetCameraBehindPlayer(playerid);
}
return 1;
}
Und das komische ist, dass er es auch debugged hat und alles bis ganz unten durch ging.
kann jemand helfen.