Help :D
#1

Hi to all
How i can make a dialog after registretion when a player need to put email.
And the email to show on scirptfiles/users
Reply
#2

u again? lol xD post in the request codes/scripts area better than here
Reply
#3

You may have an enum, so in enum add
pawn Код:
enum PlayerInfo {
    email[50]//And all other you laready have
}
new pInfo[MAX_PLAYERS][PlayerInfo];
After player Register
pawn Код:
ShowPlayerDialog(playerid,1461,DIALOG_STYLE_INPUT,"Email","Enter your email","OK","Cancel");
Under OnDialogRespone
pawn Код:
if(dialogid == 1461)
{
    if(!response) return Kick(playerid);
    format(pInfo[playerid][email],50,"%s",inputtext);
    return 1;
}
Now, when player discoonect, save his email to file like you do for other variables
Reply
#4

Quote:
Originally Posted by [MM]RoXoR[FS]
Посмотреть сообщение
You may have an enum, so in enum add
pawn Код:
enum PlayerInfo {
    email[50]//And all other you laready have
}
new pInfo[MAX_PLAYERS][PlayerInfo];
After player Register
pawn Код:
ShowPlayerDialog(playerid,1461,DIALOG_STYLE_INPUT,"Email","Enter your email","OK","Cancel");
Under OnDialogRespone
pawn Код:
if(dialogid == 1461)
{
    if(!response) return Kick(playerid);
    format(pInfo[playerid][email],50,"%s",inputtext);
    return 1;
}
Now, when player discoonect, save his email to file like you do for other variables
i tried it and it shows up every time he logs in even if he is registered you need to put it under the register dialog response so it appears after the register dialog only
Reply
#5

I need it to show up only in register
Reply
#6

Quote:
Originally Posted by CROSS_Hunter
Посмотреть сообщение
i tried it and it shows up every time he logs in even if he is registered you need to put it under the register dialog response so it appears after the register dialog only
I clearly said that he had to put if AFTER PLAYER REGISTER
Reply
#7

Bro i have this error
pawn Код:
invalid subscript (not an array or too many subscripts): "pInfo"
For this

pawn Код:
if(dialogid == 1461)
{
    if(!response) return Kick(playerid);
    format(pInfo[playerid][email],50,"%s",inputtext);
    return 1;
}
And where to put this ? i dont anderstand
i dont have enum playerinfo

pawn Код:
enum PlayerInfo {
    email[50]//And all other you laready have
}
new pInfo[MAX_PLAYERS][PlayerInfo];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)