Hi there,
another problem occured
I got my server running, and everytime someone joins a text with the ip and and ID will be logged in a txt file.
This works great but my problem now is. I can write only one log. Everytime i´m logging in again it clears the txt file and writes the new datas in it. How can i manage that file_write not clears the txt file instead of that just writes after all other found texts in the file.
Here´s the code:
var login_log = file_open_write ("login_log.txt");
file_str_write(login_log,global_join_leave_msg);
file_close (login_log);
edit: Augen auf beim Eierkauf
file_open_append (STRING* name);
Another problem. Is it possible to manage a line skip in a txt file? I tried to add \n to my string but it just creates a black symbol. And the following logs are just added to the ende of the forst logs.
But i want a strucuture after every log it should do a line skip so that i have my logs line for line separated. Any ideas?