Bei mir wird das ned gespeichert, das passwort, hier ma den code
onplayerconnect public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid, COLOR_GREY);
if(IsPlayerNPC(playerid))
{
gPlayerAccount[playerid] = 1;
gPlayerLogged[playerid] = 1;
return 1;
}
else
{
SetPlayerCameraPos(playerid, -2668.5005, 1420.0167, 912.4063);
SetPlayerCameraLookAt(playerid, -2666.1284, 1423.0178, 912.4063);
new string[256]; format(string, sizeof(string), "|- %s betretet den Server -|",ReadName(playerid));
SendClientMessageToAll(COLOR_GREY, string);
ServerLog(string);
PlayerInfo[playerid][pKills] = 0; PlayerInfo[playerid][pDeaths] = 0;
PlayerInfo[playerid][pKey] = 0;
PlayerInfo[playerid][pCash] = 0; PlayerInfo[playerid][pBank] = 0;
PlayerInfo[playerid][pTeam] = 0; PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pMember] = 0; PlayerInfo[playerid][pRank] = 0;
PlayerInfo[playerid][pAdmin] = 0; PlayerInfo[playerid][pSupporter] = 0;
PlayerInfo[playerid][pSkin] = 0; PlayerInfo[playerid][pFSkin] = 0;
PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pKnastzeit] = 0;
PlayerInfo[playerid][pKnast] = 0; PlayerInfo[playerid][pJailed] = 0;
PlayerInfo[playerid][pJPoints] = 0; PlayerInfo[playerid][pWanteds] = 0;
PlayerInfo[playerid][pDrogen] = 0; PlayerInfo[playerid][pMaterials] = 0;
PlayerInfo[playerid][pNummer] = 0; PlayerInfo[playerid][pBuch] = 0;
PlayerInfo[playerid][pAutoLiz] = 0; PlayerInfo[playerid][pBikeLiz] = 0;
PlayerInfo[playerid][pFlugLiz] = 0; PlayerInfo[playerid][pWaffLiz] = 0;
PlayerInfo[playerid][pAnglLiz] = 0; PlayerInfo[playerid][pBootLiz] = 0;
PlayerInfo[playerid][pLKWLiz] = 0; PlayerInfo[playerid][pKopfgeld] = 0;
PlayerInfo[playerid][pOpfer] = 999; PlayerInfo[playerid][pAuftrag] = 0;
PlayerInfo[playerid][pMacher] = 999; PlayerInfo[playerid][pKey] = 1;
PlayerInfo[playerid][pCarID] = -1; Woof[playerid] = -1; WooX[playerid] = -1;
SetPlayerCameraPos(playerid, -2668.5005, 1420.0167, 912.4063);
SetPlayerCameraLookAt(playerid, -2666.1284, 1423.0178, 912.4063);
new mat[256]; format(mat, sizeof(mat),"/User/%s.cer",ReadName(playerid));
if(!fexist(mat))
{
gPlayerAccount[playerid] = 0;
GivePlayerMoney(playerid, (START_CASH/2));
PlayerInfo[playerid][pBank] = START_BANK;
PlayerInfo[playerid][pTeam] = 1;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pRank] = 0;
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pSupporter] = 0;
PlayerInfo[playerid][pSkin] = 0;
PlayerInfo[playerid][pFSkin] = 0;
PlayerInfo[playerid][pLevel] = 1;
dini_IntSet("/User/%s.ini", "passwort", pKey);
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW2, "*::* Du hast noch keinen Account. Bitte fülle folgendes aus: *::*");
new s[128];
format(s,sizeof(s),"Wilkommen %s!\nDu bist noch nich Regestriert!\nFort Carson Roleplay\nVersion:0.2:",ReadName(playerid));
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Register Fenster",s,"Registrieren","Abbrechen");
}
else
{
gPlayerAccount[playerid] = 1;
dini_IntSet("/User/%s.ini", "passwort", pKey);
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW2, "*::* Du hast bereits einen Account. Bitte tippe dein Passwort rein: *::*");
new s[128];
format(s,sizeof(s),"Wilkommen %s!\nDu bist schon Regestriert!\nFort Carson Roleplay\nVersion: 0.2:",ReadName(playerid));
ShowPlayerDialog(playerid,3,DIALOG_STYLE_INPUT,"Login Fenster",s,"Einloggen","Abbrechen");
format(mat, sizeof(mat),"/Autos/%s.carinfo",ReadName(playerid));
if(dini_Exists(mat))
{
}
}
}
return 1;
}
back register und login
public BackLogin(playerid)
{
new s[128];
new loginname[MAX_PLAYER_NAME];
GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
format(s,sizeof(s),"Wilkommen %s!\n\nTippe hier dein Passwort rein:",loginname);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_INPUT,"Login Fenster",s,"Einloggen","Abbrechen");
return 1;
}
public BackRegister(playerid)
{
new s[128];
new loginname[MAX_PLAYER_NAME];
GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
format(s,sizeof(s),"Wilkommen %s!\n\nTippe hier dein Passwort rein:",loginname);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Register Fenster",s,"Registrieren","Abbrechen");
return 1;
}
ich muss das wirklich haben, sonst is das doof wen pw ned speicher!