Hallo ich hab ein Reg Script geladen da wollte ich jetzt ein bisschen was ändern...
z.B wollte ich statt
____________________So machen:
aber das klappt ned hier der Script ausschnitt...:
}
new File:hFile;
hFile = fopen(string, io_append);
new var[32];//
format(var, 32, "%s\r\n", PlayerInfo[playerid][pPassword]);fwrite(hFile, var); //====================== Hier hab ich das \r\n geändert aber geht ned
format(var, 32, "Kills=%d\r\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);//====================== Aber dies geht :P und die anderen auch
format(var, 32, "Deaths=%d\r\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
format(var, 32, "Money=%d\r\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
GivePlayerMoney(playerid,10);
fclose(hFile);
SendClientMessage(playerid, Pink, "Erfolgreich registriert!");
OnPlayerLogin(playerid,PlayerInfo[playerid][pPassword]);
return 1;
}
=======================================================================================================
public OnPlayerUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid])
{
new string3[32];
new pname3[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname3, sizeof(pname3));
format(string3, sizeof(string3), "%s.cer", pname3);
new File: pFile = fopen(string3, io_write);
if (pFile)
{
new var[32];
format(var, 32, "%s\r\n", PlayerInfo[playerid][pPassword]);fwrite(pFile, var);
fclose(pFile);
new File: hFile = fopen(string3, io_append);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
format(var, 32, "Kills=%d\r\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\r\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "Money=%d\r\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
fclose(hFile);
}
}
}
Hmm wer kann helfen wäre sehr dankbar