04.08.2013, 00:40
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:
Inside inputtext you have what he typed.
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 ); }