Account id system - 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: Account id system (
/showthread.php?tid=538220)
Account id system -
KillerStrike23 - 20.09.2014
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 !
Re: Account id system -
Beckett - 20.09.2014
Note: ****** is your friend!
Kush's tutorial to registeration/login system.
Re: Account id system -
KillerStrike23 - 20.09.2014
nup it didnt show me any thing, and then my mama tough me what ****** is :3. no need for dumy posts like this please !
Re: Account id system -
KillerStrike23 - 20.09.2014
bump bump bump ****
Re: Account id system -
Beckett - 20.09.2014
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!
Re: Account id system -
KillerStrike23 - 20.09.2014
look, i need a help you can just copy and paste the link or the code even the tutorial i just need help ! -_-
Re: Account id system -
Marricio - 20.09.2014
Keep a count stored in the file, load the file, set account ID based on the count, increase count, save file.
Re: Account id system -
KillerStrike23 - 20.09.2014
ty man but i got a problem in creating counts can you give an example
Re: Account id system -
Marricio - 20.09.2014
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.
Re: Account id system -
KillerStrike23 - 20.09.2014
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