[SQL] Login / Register System
#1

Hi!

I'm using this Login/Register System: https://sampforum.blast.hk/showthread.php?tid=574714

How can i make this system like this?



If not registered, the text in msgbox is this:

Username: <My Username> [Not Registered]

If Registered,

Username: <My Username> [Registered]


Thanks!
Reply
#2

Bump?
Reply
#3

PHP код:
new string[128];
format(stringsizeof(string), "SELECT `something` FROM `table` WHERE `name` = '%s'"Name);
mysql_query(string);
if(
mysql_num_rows() > 0)
{
//your code(account exist)
return 1;
}
else
{
//your code (account doesn't exist)
return 0;

Reply
#4

where should i put this?
Reply
#5

Under "OnPlayerConnect".
Reply
#6

Thank you. +1 Rep
Reply
#7

Quote:
Originally Posted by KillerDVX
Посмотреть сообщение
Under "OnPlayerConnect".
How about adding password confirmation if registering? How can i add it?
Reply
#8

What exactly do you mean? Checking if the player inputs the same password twice?
Reply
#9

Yes, for example, i input my password, then the confirmation dialog box will pop up and ill input again my password,
If the 2nd password is not match in 1st password, the server will reject it and return to 1st password input.
Reply
#10

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)