Guten zusammen
Ich steh vor einen rätsel
auf Linux geht der Server down wenn man einen Account hat
Ich stell mir immer wieder die frage wiso
Daher hoffe ich mal auf eure hilfe.
Das Chrashdetekt plugin hat mir bisher nicht weitergeholfen, da es nix angezeigt hat
Hier mal mein OnPlayerConnect
Code
public OnPlayerConnect(playerid)
{
new string[128],Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
//Zivispawn
RemoveBuildingForPlayer(playerid, 628, 1682.3438, 1436.9453, 11.6094, 0.25);
RemoveBuildingForPlayer(playerid, 628, 1682.3438, 1458.9609, 11.6094, 0.25);
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
SendClientMessage(playerid,cRed," ");
format(string,128,"Herzlich Willkommen auf %s",Servername);
SendClientMessage(playerid,cYellow,string);
CheckPlayerBan(playerid);
if(GetPVarInt(playerid,"loggedin")==0)
{
format(string,128,"SELECT * FROM `player` WHERE `Name` = '%s'",Name);
mysql_query(string, (-1), (-1), MySQL[0]);
mysql_store_result(MySQL[0]);
if(mysql_num_rows(MySQL[0]) == 1)
{
format(string,sizeof(string),"{FFFFFF}Der Account{FF6E00} %s {FFFFFF}wurde gefunden.\nUm sich einzuloggen gebe dein Passwort ein.",Name);
ShowPlayerDialog(playerid,diaLogin,DIALOG_STYLE_PASSWORD,Servername,string,"Login","");
}
else
{
format(string,sizeof(string),"{FFFFFF}Der Account{FF6E00} %s {FFFFFF}wurde nicht gefunden.\nUm einen Account zu erstellen gebe dein Passwort ein.",Name);
ShowPlayerDialog(playerid,diaRegister,DIALOG_STYLE_INPUT,Servername,string,"Register","");
}
mysql_free_result(MySQL[0]);
}
else
{
SpawnTheGuy(playerid);
}
handy_calling[playerid]={-1,-1};
return 1;
}
Alles anzeigen