Posts: 274
Threads: 67
Joined: Oct 2014
pawn Код:
#include <a_samp>
#define Blue 0x06CDFFFF
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Login And Register Script Basic v1.0 by §с†¶e®РµРe");
print("--------------------------------------\n");
return 1;
}
new pname[20], filename[24];
new File:user;
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, pname, 20);
format(filename, 24, "users/%s.txt", pname);
if(!fexist(filename))
{
ShowPlayerDialog(playerid, 1, 1, "Register", "Please type in a password:", "Register", "Cancel");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response == 0)
{
SendClientMessage(playerid, Blue, "You have been disconnected!");
Kick(playerid);
return 1;
}
user = fopen(filename, io_write);
fwrite(user, inputtext);
fclose(user);
SendClientMessage(playerid, Blue, "Your Message");
}
return 1;
}
Guyz it works great but when i type my pass it dosen't shows the player slection class plz help
Posts: 1,733
Threads: 187
Joined: Oct 2014
Reputation:
0
But if you use the link i gave you, Please use backup.
Posts: 274
Threads: 67
Joined: Oct 2014
i need the codes for y_ini include i can't download it from the ******'s topic
Posts: 1,733
Threads: 187
Joined: Oct 2014
Reputation:
0
y_ini include ?
Ahmm i got it got skype ? i'll send you if you want you can delete me if you want tho.
Send in PM ur skype
Posts: 1,578
Threads: 15
Joined: Feb 2013
Reputation:
0
I hate it how you "suggest" that he makes his own registration system.
He's 99% going to copy the exact codes from the tutorial without learning shit.
He should download a register system, that doesn't have any bugs.
y_users is a great one.
Posts: 843
Threads: 61
Joined: Feb 2013
Reputation:
0
Well I wanted to switch from Dini to SQLite few months ago, and I had really bad time learning everything from it. But there are always threads with tutorials for registering systems which are explained very good. That's how I learned how to make a table for SQLite and how to set it up and work with it. I think he can do the same thing with y_ini which is easier IMO.
Posts: 118
Threads: 26
Joined: Mar 2014
i suggest u look in several register systems and understand how they work , also im not saying y_ini is bad but i think Dini is much easier for beginners , i made one before and it worked great