Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- main(){
- LogSet("Hello.txt", "Helo World");
- }
- LogSet(filename[], text[], _z = sizeof(text)){
- if(strfind(filename, ".", true) == -1) return false;
- static
- File: _@f
- ;
- if(!fexist(filename)){
- fclose(fopen(filename, io_write));
- }
- _@f = fopen(filename, io_append);
- strcat(text, "\r\n", _z + 5);
- printf(text);
- fwrite(_@f, text);
- fclose(_@f);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement