Help :D - 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)
+--- Thread: Help :D (
/showthread.php?tid=368487)
Help :D -
Vizi - 13.08.2012
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
Re: Help :D -
CROSS_Hunter - 13.08.2012
u again? lol xD post in the request codes/scripts area better than here
Re: Help :D -
[MM]RoXoR[FS] - 13.08.2012
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
Re: Help :D -
CROSS_Hunter - 13.08.2012
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
Re: Help :D -
Vizi - 13.08.2012
I need it to show up only in register
Re: Help :D -
[MM]RoXoR[FS] - 13.08.2012
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
Re: Help :D -
Vizi - 13.08.2012
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];