25.07.2012, 16:55
Hey. I'm using login and register with y_ini, But when i register nothing happens no spawn, no class seletion, no nothing. Just message: "You have successfully registered!"
My register commands:
Created it using this tutorial: It worked since 2 days.
My register commands:
pawn Код:
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Register","Welcome! Enter your password to register!","Register","Quit");
return 1;
}
new hashpass[129];
WP_Hash(hashpass,sizeof(hashpass),inputtext);
new INI:file = INI_Open(Path(playerid));
INI_SetTag(file,"Player's Data");
INI_WriteString(file,"Password",hashpass);
INI_WriteInt(file,"AdminLevel",0);
INI_WriteInt(file,"VIPLevel",0);
INI_WriteInt(file,"Money",0);
INI_WriteInt(file,"Scores",0);
INI_WriteInt(file,"Kills",0);
INI_WriteInt(file,"Deaths",0);
INI_WriteInt(file,"Skin",-1);
INI_WriteInt(file,"Balance",0);
INI_Close(file);
SendClientMessage(playerid,-1,"You have been successfully registered");
return 1;