29.01.2010, 11:27
Hey fellow scripters :P,
i got a basic wiki script for saving names one a .txt file
the code is:
anywaiz im new to all this file stuff (hence me copyin the wiki) is there a way to have all the players name come on the .txt file without repeating its self cause now like when my npcs join each time i restart server they come up again in the file. I hope you guys understand.
Thanks
Ray
i got a basic wiki script for saving names one a .txt file
the code is:
Код:
new string[30]; new pname[24], File:ftw=fopen("names.txt", io_append); GetPlayerName(playerid, pname, 24); format(string, 30, "%s\r\n", pname); fwrite(ftw, string); fclose(ftw);
Thanks
Ray