Quote:
Originally Posted by Neeeeeeeeeel.-
PHP Code:
write_file("filename.txt", "number here", 0);
|
That does not autoincrement though... that just inserts the number i entered there in the text. If i make +1 every time theres a new entry, this number will reset when the server is restarted. I don't think you read the description fully.. The files entries are gonna be like this, with the correct number every entry, even if the server restarts or not:
Code:
1: Random info
2: More random info
3: Even more random info
4: more..
5: aaand more..
if i would use this method, it could look like this eventually after a few map changes and restarts:
Code:
1: Random info
2: More random info
/* Map changes a while after entry 2 is entered, and this is what happens*/
1: Random info:
2: More random info
......
/* It just starts over from the beginning*/
__________________