register/login OnDialogResponse dont show pls help - 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/login OnDialogResponse dont show pls help (
/showthread.php?tid=273823)
register/login OnDialogResponse dont show pls help -
doreto - 03.08.2011
PROBLEM FIXED
Re: cant login or register ? -
Famalamalam - 03.08.2011
Try putting it on OnPlayerRequestClass
Re: cant login or register ? -
doreto - 03.08.2011
nope its all ok i cant have errors but when i connect didnt show me OnDialogResponse if not wrong the code idk why dont show
Re: register/login OnDialogResponse dont show pls help -
Famalamalam - 03.08.2011
I meant, put this:
pawn Код:
GetPlayerName(playerid, gPlayerName[playerid], MAX_PLAYER_NAME);
if (fexist(getINI(playerid)))
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""WHITE"Registering...",""WHITE"Type your password below to register a new account.","Register","Quit");
}
Under OnPlayerRequestClass, instead of OnPlayerConnect. OnPlayerRequestClass is called after OnPlayerConnect, it's the screen with the spawn buttons.
Re: register/login OnDialogResponse dont show pls help -
doreto - 03.08.2011
Quote:
Originally Posted by Famalamalam
I meant, put this:
pawn Код:
GetPlayerName(playerid, gPlayerName[playerid], MAX_PLAYER_NAME); if (fexist(getINI(playerid))) { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""WHITE"Registering...",""WHITE"Type your password below to register a new account.","Register","Quit"); }
Under OnPlayerRequestClass, instead of OnPlayerConnect. OnPlayerRequestClass is called after OnPlayerConnect, it's the screen with the spawn buttons.
|
no way! didnt show again did the code is wrong or pawn is joke wich me
Re: register/login OnDialogResponse dont show pls help -
doreto - 03.08.2011
any help or idea
Re: register/login OnDialogResponse dont show pls help -
Steven82 - 03.08.2011
Quote:
Originally Posted by doreto
no way! didnt show again did the code is wrong or pawn is joke wich me
|
I am pretty sure the pawn language is not joking with you but alright.
Re: register/login OnDialogResponse dont show pls help -
doreto - 03.08.2011
Quote:
Originally Posted by Steven82
I am pretty sure the pawn language is not joking with you but alright.
|
idk then why wont work all pawn code is ok maybe samp reader

(joking)
Re: register/login OnDialogResponse dont show pls help -
doreto - 03.08.2011
soo any help ? i really need
Re: register/login OnDialogResponse dont show pls help -
Famalamalam - 03.08.2011
Hm... I have no experience with SII but shouldn't
pawn Код:
if (fexist(getINI(playerid)))
Include the player name? Not the ID?