Password encryption problem.
#1

(fixed) please delete
Reply
#2

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.
Reply
#3

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 ?

Reply
#4

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

That is perfect ^.^
Reply
#5

Oh lol,

Just use DIALOG_STYLE_PASSWORD

It has nothing to do with Whirlpool.
Reply
#6

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)

Reply
#7

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...
Reply
#8

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[]);

Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)