SA-MP Forums Archive
Register system not saving? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Register system not saving? (/showthread.php?tid=126331)



Register system not saving? - Torran - 07.02.2010

I follow the tutorial on wiki, But i go on the server, I register,
I go off the server, I go back on it, I have to register again, Why?
Can anyone assist me?

pawn Код:
dcmd_register(playerid, params[])
{
if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
return SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You have already registered");
else if(!params[0])
return SendClientMessage(playerid, COLOUR_ORANGE, "USAGE: /register (password) ");
else if(strlen(params) < gSettings[PASS_MIN] || strlen(params) > gSettings[PASS_MAX])
{
new string[200];
format(string, sizeof(string), "ERROR: Password must be between %d and $d characters long!", gSettings[PASS_MIN], gSettings[PASS_MAX]);
return SendClientMessage(playerid, COLOUR_ORANGE, string);
}
else
{
new password = num_hash(params);
gPlayerInfo[playerid][PLAYER_PASS] = password;
gPlayerInfo[playerid][PLAYER_REGGED] = 1;
gPlayerInfo[playerid][PLAYER_LOGGED] = 1;
GetPlayerIp(playerid, gPlayerInfo[playerid][PLAYER_IP], 16);
new string[256]; format(string, sizeof(string), "BOT: You have successfully registered your account with the password \&#39;%s\&#39;. You have been automatically logged in.", params);
return SendClientMessage(playerid, COLOUR_LIGHTBLUE, string);
}
}
Tutorial used: https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript


Re: Register system not saving? - Correlli - 07.02.2010

Because you're not saving anything..


Re: Register system not saving? - Onyx09 - 07.02.2010

are the accounts even savin in any folder on scriptfiles? and yeah btw what cornelli say xD


Re: Register system not saving? - Torran - 07.02.2010

Thats what im asking, How do i save them?
I just followed the tutorial, And yes my file appears in tAdmin/Users


Re: Register system not saving? - Torran - 08.02.2010

Anyone?