Account id system
#1

hi all, i want a help in how to create an account id like when player registers it show them you are registered with account id 0 or 1 bla bla.
note i dont use MySQL !
Reply
#2

Note: ****** is your friend!

Kush's tutorial to registeration/login system.
Reply
#3

nup it didnt show me any thing, and then my mama tough me what ****** is :3. no need for dumy posts like this please !
Reply
#4

bump bump bump ****
Reply
#5

Really? Didn't show you anything? Then how come it shows me everything? Probably you just look at the 1st link then be like "aw hell naw I ain't gonna search all these"

Here!
Reply
#6

look, i need a help you can just copy and paste the link or the code even the tutorial i just need help ! -_-
Reply
#7

Keep a count stored in the file, load the file, set account ID based on the count, increase count, save file.
Reply
#8

ty man but i got a problem in creating counts can you give an example
Reply
#9

pawn Код:
new string[4]; // Create the string to store the read text in
    new File:example = fopen("count.txt", io_write); // Open the file
    if(example) // If it opened successfully
    {
        fread(example, string); // Read a line from the file and store it in 'string'
        new count = strval( string ) + 1;
        PlayerAccountID = count;     /*You change this accordingly*/
        format(string, sizeof string, "%d", count );
        fwrite(example, string );
        fclose(example); // Close the file
        print(string); // Print what was read
    }
Not compiled, maybe someone can find a better way I am not very good with INI files.
Reply
#10

its hard to get it man, lol what do i need from a count txt if i got player info saved inside player's account file.
do you have any idea about a good tutorials cause all i found was A MySQL
thanks btw your +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)