[Duda]Leer archivo
#4

Quote:
Originally Posted by -[R]hysi-
Посмотреть сообщение
No me funciona :S

pawn Код:
YCMD:verhack(playerid, params[], help)
{
if (help) SendClientMessage(playerid, 0xFF0000AA, "Para ver el log"); //ayuda y_ini
else
{
if (Informacion[playerid][pAdmin] < 10) return SendClientMessage(playerid, COLOR_GRAD2, "ЎNo autorizado!");
new File:file = fopen("AntiAdminHack.log",io_read);
new string[768],result[128];
if(file) {
while(fread(file,result)) {
strcat(string,result);
}
}
ShowPlayerDialog(playerid,LOG,DIALOG_STYLE_MSGBOX,"Contenido",string,"Aceptar","");
return 1;
}
return 1;
}
PD:hay alguna manera de vaciar el archivo o borrarlo tambiйn?
Si usa Fremove
Reply


Messages In This Thread
[Duda]Leer archivo - by -[R]hysi- - 24.07.2012, 21:08
Re: [Duda]Leer archivo - by Daniel-92 - 24.07.2012, 21:20
Respuesta: [Duda]Leer archivo - by -[R]hysi- - 24.07.2012, 23:14
Respuesta: [Duda]Leer archivo - by Fluid016 - 24.07.2012, 23:24

Forum Jump:


Users browsing this thread: 3 Guest(s)