22.08.2013, 16:56
Can someone help me.
I'm trying to save the email at the registration of users.
My problem is that I got only the first character of the email on the file.
This is what I made.
I'm doing someting wrong with the string.
I got already the email on the user file .ini but I trying
to write it also in a another file that I named mailing.ini
The aim is to have all the emails users on a unique file.
I'm trying to save the email at the registration of users.
My problem is that I got only the first character of the email on the file.
This is what I made.
I'm doing someting wrong with the string.
I got already the email on the user file .ini but I trying
to write it also in a another file that I named mailing.ini
The aim is to have all the emails users on a unique file.
Quote:
public SaveMailing(playerid) { new Texte[128]; Email[playerid] = PlayerInfo[playerid][pEmail]; format(Texte, sizeof(Texte), "%s\r\n", Email); new File: file2 = fopen("LARP/mailing.ini", io_append); fwrite(file2, Texte); fclose(file2); return 1; } |