register/login OnDialogResponse dont show pls help
#1

PROBLEM FIXED
Reply
#2

Try putting it on OnPlayerRequestClass
Reply
#3

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
Reply
#4

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.
Reply
#5

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
Reply
#6

any help or idea
Reply
#7

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.
Reply
#8

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)
Reply
#9

soo any help ? i really need
Reply
#10

Hm... I have no experience with SII but shouldn't

pawn Код:
if (fexist(getINI(playerid)))
Include the player name? Not the ID?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)