Help again +rep
#1

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
Reply
#2

Downloading register system won't learn you to script i'd suggest to make 1 of your own

I used it from that tutorial and it's working great

https://sampforum.blast.hk/showthread.php?tid=273088

Btw i looked at your script and i didn't knew the problem :P
Reply
#3

But if you use the link i gave you, Please use backup.
Reply
#4

i need the codes for y_ini include i can't download it from the ******'s topic
Reply
#5

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
Reply
#6

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.
Reply
#7

Quote:
Originally Posted by Stinged
Посмотреть сообщение
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.
You never can know.

But if he does that, Then it's his problem that's how no one learns to script anyways, How do you know he will copy? If he will then it's his problem.
Reply
#8

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.
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)