02.10.2012, 17:09
pawn Код:
stock WriteInlog(name[],str[])
{
new location[128];
format(location,sizeof(location),"%s.sav",name);
if(fexist(location))
{
new File:log = fopen(location,io_append);
fwrite(log,str);
fclose(log);
}
else { printf("Log %s is not found",location);}
return 1;
}
stock Createlog(name[])
{
new location[128];
format(location,sizeof(location),"%s.sav",name);
new File:log = fopen(location,io_append);
fclose(log);
return 1;
}