Request E-Mail at Register
#1

Exists a code or something that on register it apears a box in center of monitor that says you to introduce your email
and what email you add there , it will be stocked in .ini file of that user ?
Reply
#2

pawn Код:
ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_INPUT, "Email Address", "Enter your email Address","Continue","Quit");

Then under OnDialogResponse, do something like..:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case 1000:
        {
            new
                string[128],
                File[128];
            if (!response) return Kick(playerid);
            if(response)
            {
                 strcat(PlayerInfo[playerid][email], inputtext);
                 format(string, sizeof(string), "Your email is %s",inputtext);
                 SendClientMessage(playerid, -1, string);
                 new playername[MAX_PLAYER_NAME];
                 GetPlayerName(playerid,playername,sizeof(playername));
   
                 format(File, sizeof(File), %s.ini, playername);

         new INI:Out = INI_Open(File);

         INI_SetTag(Out,"data");
         INI_WriteString(Out,"Email","inputtext");
         INI_WriteInt(Out,"Type", 0);
         INI_Close(Out);
             }
         }
     }
    return 1;
}
You'll need y_ini for my example.
Reply
#3

Something else ?
Reply
#4

What else do you want? Explain.
Reply
#5

Well,
to explain how to install theese codes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)