INI string
#1

Hi guys, I need help how to save some inputtext in .ini file ? I'm trying to make when player type his email adress, to save it in his .ini file.

Thaanks
Reply
#2

Check those tutorials about register and login, you can figure it out if you check "password" thingy.

EDIT:

https://sampforum.blast.hk/showthread.php?tid=175565

Hint: INI_WriteString(ini, "EMAIL", "xxxx@xxxx.xxx");
Reply
#3

But what should I use with dialogs? I want when player type in dialog his email adress, to put it in ini.

btw thanks for this.
Reply
#4

You use Y_INI to manage your files? (https://sampforum.blast.hk/showthread.php?tid=175565)

Use https://sampwiki.blast.hk/wiki/ShowPlayerDialog to show a dialog to the player (use style DIALOG_STYLE_INPUT https://sampwiki.blast.hk/wiki/Dialog_Styles ) then use https://sampwiki.blast.hk/wiki/OnDialogResponse to know what he typed.

If he press the left button response is one, so if the first button is "Save Email" do:

Код:
if (response)
{
// Here save your email address
//
INI_WriteString ( File_Handler , "email", inputtext );
}
Inside inputtext you have what he typed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)