30.10.2010, 15:20
https://sampwiki.blast.hk/wiki/Fopen
Allн dice que si utilizas io_append que es para anexar o leer solamente (supongo que si no has creado el archivo no funcionarб). Intenta con io_write para ver si funciona.
A simple vista no vн ningъn error...
Allн dice que si utilizas io_append que es para anexar o leer solamente (supongo que si no has creado el archivo no funcionarб). Intenta con io_write para ver si funciona.
pawn Код:
public GuardarEn(Archivo[], Texto[])
{
new File:**, Arch[256], String[256], Ano, Mes, Dia, Hora, Minuto, Segundo;
getdate(Ano, Mes, Dia); gettime(Hora, Minuto, Segundo);
format(Arch, sizeof(Arch), "***/Logs/%s.txt", archivo);
** = fopen(Arch, io_write);
format(String, sizeof(String), "[%d/%d/%d - %d:%d.%d]: %s\n", Dia, Mes, Ano, Hora, Minuto, Segundo, texto);
fwrite(**, String);
fclose(**);
return 1;
}