02.06.2014, 12:28
(
Последний раз редактировалось Need4samp; 02.06.2014 в 12:59.
)
Hi guys
please i want create file in Logs/makeadmin.ini
How can i do that ?
other : if u can make for me stock , because i need save many logs in many place on pawno
First of all :
put stock (EX
Go to the string u want to save and use
logswrite("makeadmin.log", string);
please i want create file in Logs/makeadmin.ini
pawn Код:
format(string, sizeof(string), "AdminWarn : Admin %s has give admin level %d To %s", pname, level, idname);
SendAdminMessage(COLOR_HMARMGHLO9, string);
other : if u can make for me stock , because i need save many logs in many place on pawno
Answer
↓↓
↓↓
First of all :
put stock (EX
pawn Код:
stock logswrite(file[] , text[])
{
new File:pp=fopen(file,io_append);
fwrite(pp,text);
fwrite(pp,"\r\n");
fclose(pp);
return 1;
}
Go to the string u want to save and use
pawn Код:
format(string, sizeof(string), "AdminWarn : Admin %s has give admin level %d To %s", pname, level, idname);
SendAdminMessage(COLOR_HMARMGHLO9, string);
logswrite("makeadmin.log", string);