SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 12/08/2011, 05:25 AM   #71
Darnell
Gangsta
 
Darnell's Avatar
 
Join Date: Jul 2010
Posts: 824
Reputation: 35
Default Re: Login and Register System - Dialogs - Using Y_INI

No-one ?
Darnell is offline   Reply With Quote
Old 12/08/2011, 11:25 AM   #72
Basicz
Gangsta
 
Basicz's Avatar
 
Join Date: Aug 2010
Location: Indonesia, Surabaya.
Posts: 605
Reputation: 35
Default Re: Login and Register System - Dialogs - Using Y_INI

=P

Just remove the "udb_hash" from your code, it's already defined in dudb include.
__________________

- Quina, from the game " Final Fantasy IX "
Basicz is offline   Reply With Quote
Old 12/08/2011, 12:09 PM   #73
Darnell
Gangsta
 
Darnell's Avatar
 
Join Date: Jul 2010
Posts: 824
Reputation: 35
Default Re: Login and Register System - Dialogs - Using Y_INI

Where to delete...then it won't save password, and they actully change and don't work.. :\.
Darnell is offline   Reply With Quote
Old 12/08/2011, 01:28 PM   #74
Basicz
Gangsta
 
Basicz's Avatar
 
Join Date: Aug 2010
Location: Indonesia, Surabaya.
Posts: 605
Reputation: 35
Default Re: Login and Register System - Dialogs - Using Y_INI

Because the function is ALREADY DEFINED.

pawn Code:
stock lol( ... ){ Ban( ... ); }
stock lol( ... ){ Kick( ... ); }
__________________

- Quina, from the game " Final Fantasy IX "
Basicz is offline   Reply With Quote
Old 12/08/2011, 09:57 PM   #75
PhoenixB
Huge Clucker
 
PhoenixB's Avatar
 
Join Date: Mar 2011
Location: Pawno.exe
Posts: 399
Reputation: 46
Default Re: Login and Register System - Dialogs - Using Y_INI

Would be awesome without the having to relog when Registered but overall splendind job mate, nice
PhoenixB is offline   Reply With Quote
Old 14/08/2011, 08:40 PM   #76
TheKingOfSamp
Big Clucker
 
TheKingOfSamp's Avatar
 
Join Date: Jul 2010
Posts: 103
Reputation: 0
Default Re: Login and Register System - Dialogs - Using Y_INI

think everything works , but only this doesnt ( hash )

(134) : error 021: symbol already defined: "udb_hash"


134 (line) 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;
}
TheKingOfSamp is offline   Reply With Quote
Old 15/08/2011, 06:42 PM   #77
Coffeemonster
Big Clucker
 
Join Date: Nov 2010
Posts: 143
Reputation: 2
Default Re: Login and Register System - Dialogs - Using Y_INI

Is that password hash actually secure? Or could someone post a version with example Whirlpool?
Coffeemonster is offline   Reply With Quote
Old 15/08/2011, 07:41 PM   #78
Kush
Gangsta
 
Join Date: May 2011
Posts: 781
Reputation: 126
Default Re: Login and Register System - Dialogs - Using Y_INI

Quote:
Originally Posted by TheKingOfSamp View Post
think everything works , but only this doesnt ( hash )

(134) : error 021: symbol already defined: "udb_hash"


134 (line) 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;
}
The stock function works perfectly. You simply have udb_hash defined some where else.

@NiZ - Yes, it is secure.

There is a FULL VERSION DOWNLOAD available. As I've said countless times, download it and take a look at where everything is placed.
Kush is offline   Reply With Quote
Old 16/08/2011, 06:33 AM   #79
PrawkC
Huge Clucker
 
Join Date: May 2011
Posts: 485
Reputation: 52
Default Re: Login and Register System - Dialogs - Using Y_INI

If you're getting "error 021: symbol already defined: "udb_hash""

It is because your script is using the include "#include <dudb>"

So you just have to remove the stock that Kush supplied.
__________________
Doin' stuff.
PrawkC is offline   Reply With Quote
Old 16/08/2011, 07:02 AM   #80
kingchandio
Big Clucker
 
Join Date: Jan 2011
Posts: 111
Reputation: 3
Default Re: Login and Register System - Dialogs - Using Y_INI

How can i save logs if i have this like
pawn Code:
CMD:s(playerid, params[])
{
    if (isnull(params)) return SendClientMessage(playerid,-1, "USAGE: (/s)hout [shout chat]");

    new Float:X, Float:Y, Float:Z, String[128], Name[25];

    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerName(playerid, Name, 25);

    format(String, 128, "[ID:%d]%s Shout: %s", playerid, Name, params);

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
         if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,30.0,X,Y,Z))
        {
            SendClientMessage(playerid, COLOR_WHITE, String);
        }
    }

    return true;
}
kingchandio is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] Login & Register system - dialogs - with y_ini Seven_of_Nine Tutorials 30 01/11/2018 10:54 AM
[FilterScript] [FS] ERegLog ( Advanced Register/Login System [Dialogs] ) aircombat Filterscripts 29 09/11/2014 09:30 PM
[Tutorial] Login and Register System - Dialogs - Using SII Kush Tutorials 69 02/07/2013 05:19 PM
[FilterScript] Register/login system (Dini, dialogs) pantelimonfl Filterscripts 6 08/03/2011 04:13 PM


All times are GMT. The time now is 01:37 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.