SA-MP Forums Archive
Password encryption problem. - 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)
+--- Thread: Password encryption problem. (/showthread.php?tid=379860)



(fixed) - MrPlatinum - 23.09.2012

(fixed) please delete


Re: Password encryption problem. - Psymetrix - 23.09.2012

Use the function provided by the plugin to encrypt the password - there not magically encrypted.

There are numerous tutorials and a whirlpool gamemodes to study and learn from.


Re: Password encryption problem. - Djole1337 - 23.09.2012

Quote:
Originally Posted by MrPlatinum
Посмотреть сообщение
When i goto log into the server it will still be like this >
(Password) instead of (******)
Rofl, are you talking about dialog or what ?




Re: Password encryption problem. - MrPlatinum - 23.09.2012

Quote:
Originally Posted by Mr_DjolE
Посмотреть сообщение
Rofl, are you talking about dialog or what ?

That is perfect ^.^


Re: Password encryption problem. - Djole1337 - 23.09.2012

Oh lol,

Just use DIALOG_STYLE_PASSWORD

It has nothing to do with Whirlpool.


Re: Password encryption problem. - MrPlatinum - 23.09.2012

May i ask, what do i change here? this is in "a_samp.inc"

Quote:

// Player GUI Dialog
#define DIALOG_STYLE_MSGBOX 0
#define DIALOG_STYLE_INPUT 1
#define DIALOG_STYLE_LIST 2
#define DIALOG_STYLE_PASSWORD 3

native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);

// --------------------------------------------------
// Defines
// --------------------------------------------------

// States
#define PLAYER_STATE_NONE (0)
#define PLAYER_STATE_ONFOOT (1)
#define PLAYER_STATE_DRIVER (2)
#define PLAYER_STATE_PASSENGER (3)
#define PLAYER_STATE_EXIT_VEHICLE (4) // (used internally)
#define PLAYER_STATE_ENTER_VEHICLE_DRIVER (5) // (used internally)
#define PLAYER_STATE_ENTER_VEHICLE_PASSENGER (6) // (used internally)
#define PLAYER_STATE_WASTED (7)
#define PLAYER_STATE_SPAWNED (
#define PLAYER_STATE_SPECTATING (9)

// Marker modes used by ShowPlayerMarkers()
#define PLAYER_MARKERS_MODE_OFF (0)
#define PLAYER_MARKERS_MODE_GLOBAL (1)
#define PLAYER_MARKERS_MODE_STREAMED (2)




Re: Password encryption problem. - clarencecuzz - 23.09.2012

You currently have:
pawn Код:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_INPUT...
Just change DIALOG_STYLE_INPUT to DIALOG_STYLE_PASSWORD.
Example:
pawn Код:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_PASSWORD...



Re: Password encryption problem. - MrPlatinum - 23.09.2012

Knowing my luck i may have done it wrong, but i got this error when i tried to compile it in pawno.

Quote:

C:\Users\Brandon\Desktop\SERVER\pawno\include\a_sa mp.inc(186) : error 010: invalid function or declaration

Here.


Quote:

// Player GUI Dialog
#define DIALOG_STYLE_MSGBOX 0
#define DIALOG_STYLE_INPUT 1
#define DIALOG_STYLE_LIST 2
#define DIALOG_STYLE_PASSWORD 3

native ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_PASSWORD, style, caption[], info[], button1[], button2[]);




Re: Password encryption problem. - clarencecuzz - 23.09.2012

No no, don't put this in the include file, put this in your script when they put a password in. Leave the include how it was, and change DIALOG_STYLE_INPUT to DIALOG_STYLE_PASSWORD IN YOUR SCRIPT.


Re: Password encryption problem. - mamorunl - 23.09.2012

One rule of thumb: NEVER edit the include files that come with the package or otherwise given to you. You can always create one that extends the includes but you should never edit the ones already in your package. If you get a different version of the server, the includes are updated as well and you'll have to do all the work again.

Even if this wasn't an include fault but seeing as you are trying to edit an include I thought I'd mention it.