format(string, sizeof(string), "AdminWarn : Admin %s has give admin level %d To %s", pname, level, idname);
SendAdminMessage(COLOR_HMARMGHLO9, string);
stock logswrite(file[] , text[])
{
new File:pp=fopen(file,io_append);
fwrite(pp,text);
fwrite(pp,"\r\n");
fclose(pp);
return 1;
}
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);
stock Write(file[] , text[])
{
new File:pp=fopen(file,io_append);
fwrite(pp,text);
fwrite(pp,"\r\n");
fclose(pp);
return 1;
}
i recommend you use fwrite function for logs
so a stock as you requested will be like this-- pawn Код:
and also file name while using stock should be with its extension ,i.e., .txt/.ini |