27.01.2012, 12:38
Oh, then all you need is:
You will need Y_INI installed. Should work. all you need to do is adapt and idendate.
And i dont want your money just give it to the guy who wrote the mini email system for you...
pawn Code:
#define DIALOG_EMAIL 400
//whenever you want to show him the e-mail dialog
ShowPlayerDialog(playerid,DIALOG_EMAIL,DIALOG_STYLE_INPUT,"EMail","Enter your Email below","Ok","Cancel");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_EMAIL:
{
new Nameh[MAX_PLAYER_NAME];
new Filenameh[200];
GetPlayerName(playerid,Nameh,sizeof(Nameh));
format(Filenameh,sizeof(Filenameh),"Users/%s.ini",Nameh);
new INI:iniFile = INI_Open(Filenameh);
INI_SetTag(iniFile, "Data");
INI_WriteString(iniFile, "Email", inputtext);
INI_Close(iniFile);
return 0;
}
}
}
And i dont want your money just give it to the guy who wrote the mini email system for you...