[RLC] Register, Login & Change Password v-0.2
[Commands] Some Command For Cars »

Mahmoud Tornado

  • Full Member
  • Posts: 220

Shadow

  • Beta Tester Emeritus
  • Posts: 176
Re: Basic Login/Registeration System
« Reply #16,  »
Quote from Xmair on August 29th, 2018, 07:17 AM
Why do you use a custom encryption method?
It's not a 'custom encryption', nor an 'encryption'.
It's the SHA-256 hashing (one way function) algorithm but implemented in squirrel (still, should use the hashing plugin instead.)
Quote
PS:is trash is ur home language??

[SC]Spartan

  • Newbie
  • Posts: 25
Re: Basic Login/Registeration System
« Reply #17,  »
if (cmd == "cambiarnick")
 {
 if ( Stats[ player.ID ].LoggedIn == true ) return MessagePlayer( "[#E0E0E0]Debes iniciar sesión en el servidor", player );
 else if ( Stats[ player.ID ].Registered == true ) return MessagePlayer( "[#E0E0E0]Debes ser registrado", player );
 else if ( !text ) MessagePlayer("[#E0E0E0]Código: / cambio de nombre <Nuevo nombre>",player);
 else {
 local name = VARCHAR(25);
 QuerySQL( db, "UPDATE Accounts SET Name = '" + name + "' WHERE Name = '" + escapeSQLString(player.Name) + "'");
 MessagePlayer("[#E0E0E0]Su nombre ha sido cambiado con éxito ",player);
}
}

Credit to KrOoB:

i have this error

AN ERROR HAS OCCURED [the index 'VARCHAR' does not exist]
I tried everything.
If there is no solution, could someone help me to do another one to change the nickname if the name is not removed


!

  • Sr. Member
  • Don't feel shy while zooming on h*r... >>zeus#5155
  • Posts: 380
[RLC] Re: Register, Login & Change Password v-0.2
« Reply #18,  »Last edited
[RLC] Register, Login & Change Password

Update Reason: Used vcmp official hashing, unique id concept has been used and installation is made simple.

Topic Updated: Link


:edit:
Quote from [SC]Spartan on September 7th, 2018, 08:05 AM
AN ERROR HAS OCCURED [the index 'VARCHAR' does not exist]
I tried everything.
If there is no solution, could someone help me to do another one to change the nickname if the name is not removed
This snippet is not related to this topic if you have any issue in installation or found bug in this topic post here otherwise get dafaq out of this topic and create a support ticket over there Link

Discord: zeus#5155