SA-MP Forums Archive
I have a question! - 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: I have a question! (/showthread.php?tid=362515)



I have a question! - dundolina - 24.07.2012

How can I write the password for registering and logging into the dialogue to be displayed on stars?


Re: I have a question! - EV007 - 24.07.2012

DIALOG_STYLE_PASSWORD i think. Check wiki.


Re: I have a question! - dundolina - 24.07.2012

Код:
D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(2260) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(2270) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(2514) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(9342) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(9372) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
And how i create when player register to show his password which is registered.


Re: I have a question! - ViniBorn - 24.07.2012

It's only for 0.3d+


Re: I have a question! - electrux - 24.07.2012

dude its DIALOG_STYLE_INPUT and to get the text which is written as input in it is inputtext.


Re: I have a question! - dundolina - 24.07.2012

Quote:
Originally Posted by electrux
Посмотреть сообщение
dude its DIALOG_STYLE_INPUT and to get the text which is written as input in it is inputtext.
I don't understand you..

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
It's only for 0.3d+
My server is 0.3e?


Re: I have a question! - Rudy_ - 24.07.2012

use UDB Hash
pawn Код:
/*Credits to Dracoblue*/
stock udb_hash(buf[]) {
    new length=strlen(buf);
    new s1 = 1;
    new s2 = 0;
    new n;
    for (n=0; n<length; n++)
    {
       s1 = (s1 + buf[n]) % 65521;
       s2 = (s2 + s1)     % 65521;
    }
    return (s2 << 16) + s1;
}
This forum requires that you wait 120 seconds between posts. Please try again in 13 seconds.


Re: I have a question! - dundolina - 24.07.2012

Код:
D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(670) : error 021: symbol already defined: "num_hash"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: I have a question! - Rudy_ - 24.07.2012

Open your script
perss Ctrl+F and type num_hash and remove it


Re: I have a question! - dundolina - 24.07.2012

I don't have "num_hash".

error - stock udb_hash(buf[]) {