SA-MP Forums Archive
email system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: email system (/showthread.php?tid=118723)



email system - jasonnw666 - 04.01.2010

hello and happy new year
i want to create email system who allow to send email even if the player is offline

i try to create file .txt for each playername but i can't do succefully

exemple of read email
new File:handler=fopen("emails.txt", io_read);
new string[256], MyVal[256], idx;
while(fread(handler, string))
{
printf("Line %d contains the following text: %s", idx+1, string);
}

who i can create file "player name".txt

thank you


Re: email system - jasonnw666 - 04.01.2010

or any one have email system?


Re: email system - Lajko1 - 04.01.2010

i think he need the example/code so he will learn


Re: email system - jasonnw666 - 04.01.2010

i use godfather but i don't know how use system "txt"


Re: email system - Correlli - 04.01.2010

Quote:
Originally Posted by Lajko1
i think he need the example/code so he will learn
He won't learn how to script from the code (that's what most of the people are expecting - a clean code), he'll only learn how to copy.


Re: email system - jasonnw666 - 04.01.2010

i learned with exemples
but i don't know how use file functions

i try to use https://sampwiki.blast.hk/wiki/File_Functions
https://sampwiki.blast.hk/wiki/Sscanf

but i cant create file for each players