Die Dialoge:
case DIAG_LOGIN:
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,DIAG_LOGIN,1,"Login",LOGIN_TEXT,"Login","Abbrechen");
return SendClientMessage(playerid,ROT,"Kein Passwort angegeben...");
}
if(!strcmp(MD5_Hash(inputtext), mysql_ReturnPasswort(Spielername(playerid)), true))
{
LoadPlayer(playerid);
for(new i = 0; i < Max_Player_Cars; i++)
{
Carlist[playerid][i][Typ]=-1; Carlist[playerid][i][Xx]=0.0; Carlist[playerid][i][Yy]=0.0; Carlist[playerid][i][Zz]=0.0;
Carlist[playerid][i][Rotation]=0.0; Carlist[playerid][i][Status]=0; Carlist[playerid][i][Lock]=0; Carlist[playerid][i][Carid]=-1;
Carlist[playerid][i][Farbe1]=-1; Carlist[playerid][i][Farbe2]=-1; Carlist[playerid][i][mod1]=-1; Carlist[playerid][i][mod2]=-1;
Carlist[playerid][i][mod3]=-1; Carlist[playerid][i][mod4]=-1; Carlist[playerid][i][mod5]=-1; Carlist[playerid][i][mod6]=-1;
Carlist[playerid][i][mod7]=-1; Carlist[playerid][i][mod8]=-1; Carlist[playerid][i][mod9]=-1; Carlist[playerid][i][mod10]=-1;
Carlist[playerid][i][mod11]=-1; Carlist[playerid][i][mod12]=-1; Carlist[playerid][i][mod13]=-1; Carlist[playerid][i][mod14]=-1;
Carlist[playerid][i][mod15]=-1; Carlist[playerid][i][mod16]=-1; Carlist[playerid][i][mod17]=-1; Carlist[playerid][i][Paintjob]=-1;
LoadPlayerCar(playerid);
if(Carlist[playerid][i][Typ]!=-1 && Carlist[playerid][i][Status]==1)
{
Carlist[playerid][i][Carid]=CreateTunedCar(playerid, i);
}
SetTimerEx("playercarzu",1000,1,"i",playerid);
SetTimerEx("DelaySetVehicleParams",10000,0,"i",playerid);
}
player[playerid][eingeloggt] = 1;
SendClientMessage(playerid,GRUEN,"Du wurdest erfolgreich eingeloggt.");
}
else
{
ShowPlayerDialog(playerid,DIAG_LOGIN,1,"Login",LOGIN_TEXT,"Login","Abbrechen");
SendClientMessage(playerid,ROT,"Das Passwort war Falsch!");
}
}
case DIAG_REG:
{
if(!strlen(inputtext) || strlen(inputtext) < 6)
{
ShowPlayerDialog(playerid,DIAG_REG,3,"Registrieren",REG_TEXT,"Registrieren","Abbrechen");
return SendClientMessage(playerid,ROT,"Das Passwort ist zu kurz!");
}
CreateAccount(playerid, inputtext);
player[playerid][fahr_lizenz] = 1;
SetPlayerScore(playerid, 1);
player[playerid][level] = 1;
player[playerid][hauskey] = 255;
player[playerid][eingeloggt] = 1;
SendClientMessage(playerid,GRUEN,"Dein Account wurd angelegt und du wurdest Automatisch eingeloggt.");
SendClientMessage(playerid,GRUEN,"Bitte fahre nun zu dem Angegebenen Checkpoint!");
SetPlayerCheckpoint(playerid, -2198.1755,-2264.0996,30.6250, 5.0);
}
SpawnPlayer wird im Script nur hier benutzt.
public Spawn(playerid)
{
SpawnPlayer(playerid);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetTimerEx("Spawn",50,0,"i",playerid);
return 1;
}
Und ich habe nie gesagt das der Server aus geht......
Sondern lediglich die Connection closed.