SA-MP Forums Archive
Help again +rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help again +rep (/showthread.php?tid=545027)



Help again +rep - Trollerz - 05.11.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


Re: Help again +rep - Glossy42O - 05.11.2014

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


Re: Help again +rep - Glossy42O - 05.11.2014

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


Re: Help again +rep - Trollerz - 05.11.2014

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


Re: Help again +rep - Glossy42O - 05.11.2014

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


Re: Help again +rep - Stinged - 05.11.2014

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.


Re: Help again +rep - Glossy42O - 05.11.2014

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.


Re: Help again +rep - dominik523 - 05.11.2014

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.


Re: Help again +rep - ItzRbj - 05.11.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