13.03.2011, 19:49
Quote:
Puede ser que sea un error de llaves o algo y hace que al compilar diga estupideces
|
pawn Код:
forward OnPlayerUpdate(playerid);
public OnPlayerUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{
if(AccountInfo[playerid][aLogged] == 1)
{
new string3[128];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), ACCOUNTS_FOLDER, playername3);
new ip[20];
GetPlayerIp(playerid,ip,sizeof(ip));
new File: hFile = fopen(string3, io_write);
if (hFile)
{
new var[128];
format(var, 128, "Password=%s\n", AccountInfo[playerid][aPassword]);fwrite(hFile, var);
format(var, 128, "IP=%s\n",ip);fwrite(hFile, var);
format(var, 128, "Admin=%d\n", AccountInfo[playerid][aAdmin]);fwrite(hFile, var);
format(var, 128, "Muertes=%d\n", AccountInfo[playerid][aMuertes]);fwrite(hFile, var);
format(var, 128, "Asesinatos=%d\n", AccountInfo[playerid][aAsesinatos]);fwrite(hFile, var);
format(var, 128, "Dinero=%d\n",GetPlayerMoney(playerid));fwrite(hFile, var);
format(var, 128, "Carcel=%d\n", AccountInfo[playerid][aCarcel]);fwrite(hFile, var);
format(var, 128, "TiempoCarcel=%d\n", AccountInfo[playerid][aTiempoCarcel]);fwrite(hFile, var);
format(var, 128, "Bloqueado=%d\n", AccountInfo[playerid][aBloqueado]);fwrite(hFile, var);
format(var, 128, "Silencio=%d\n", AccountInfo[playerid][aSilencio]);fwrite(hFile, var);
fclose(hFile);
}
}
}
return 1;
}