10.07.2012, 08:48
Hello.
I have problem with my register command:
When i reggister there is all but no password
So here is my code:
I have followed this tutorial - https://sampforum.blast.hk/showthread.php?tid=273088
I have problem with my register command:
When i reggister there is all but no password

Код:
[data] Cash = 0 Score = 0 Lang = 0 Admin = 0 VIP = 0
Код:
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registering...","You have entered an invalid password.\nType your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Score",0);
INI_WriteInt(File,"Lang",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"VIP",0);
INI_Close(File);
}
}



)