SA-MP Forums Archive
need help email - 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: need help email (/showthread.php?tid=120022)



need help email - jasonnw666 - 10.01.2010


i try to create system of email
its possible to create .ini file in a folder email for each player
and to allow other player to write text in a ini (send email) to a player.ini file even if the player is offline?



new string3[256],filename[256];
tmp = strtok(cmdtext, idx);
format(string3, sizeof(string3), "email/%s.ini", filename);
new File: hFile = fopen(string3, io_write);
if(!dini_Exists(string3))
{
dini_Create(string3);
dini_Set(string, "email1", tmp);
dini_Set(string, "email2, tmp);
dini_Set(string, "email3, tmp);
dini_Set(string, "email4, tmp);
dini_Set(string, "email5, tmp);
dini_Set(string, "email6, tmp);
dini_Set(string, "email7, tmp);
dini_Set(string, "email8, tmp);
dini_Set(string, "email9, tmp);
dini_Set(string, "email10, tmp);
return 1;
}



Re: need help email - titanak - 12.06.2010

is this possible ? its ASP.NET and i dont think you can make it.


Re: need help email - DJDhan - 12.06.2010

Ofcourse it's possible.

But it's a long code

You can have a text file say "Inbox.ini" and "Outbox.ini" in each player folder. Then use io_append to add the messages and not replace them.


Re: need help email - titanak - 12.06.2010

oo . lol i meaned to send this all email: name@hotmail.com


Re: need help email - DJDhan - 12.06.2010

Quote:
Originally Posted by » Titan «
oo . lol i meaned to send this all email: name@hotmail.com
Why would he ask about THAT email ?
It would have been WRONG SECTION


Re: need help email - titanak - 12.06.2010

XD why we dump it then ?