03.01.2013, 14:24
use print( ); for debugging.. and you will see where it stops..
example:
and watch server log
example:
pawn Код:
if(dialogid == dregister)
{
print("Code pos #1");
if(!response) return Kick(playerid);
print("Code pos #2");
if(response)
{
print("Code pos #3");
if(!strlen(inputtext))
{
print("Code pos #4");
ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.\nPlease enter the password!","Register","Quit");
return 1;
}
print("Code pos #5");
if(!dini_Exists(Path(playerid)))
{
print("Code pos #6");
new password[129];
dini_Create(Path(playerid));
WP_Hash(password,sizeof(password),inputtext);
dini_Set(Path(playerid),"Password",password);
ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_PASSWORD,"Login","Welcome back. This account is registered. \nInsert your password to login to your account.","Login","Quit");
}
print("Code pos #7");
return 1;
}
}