Max Torque
25th May 2010, 15:23
i use this code.but this code only showing button.if i click button after fill this field,push enter, lapper not saving this.and continues to demonstrate this box.
Sub OnConnectClose( $KeyFlags,$id )
openPrivTextButton( "mail",70,78,60,15,5,96,"Mail","Mail",30,User);
i want to make a mail button.players type mail adresses to this box.and lapper will save this.how i make ?
Bass-Driver
25th May 2010, 15:59
hi
here a peace of my code ffrom a team application form.
openPrivButton( "afbtn12",51,$AF_HT+88,40,5,7,-1,64, "^7Your Email/MSN");
openPrivTextButton( "afbtn1212",91,$AF_HT+88,57,5,7,80, "^3Enter Your Email/MSN Here","^7Your MSN or Email Adress",60,MSN);
openPrivButton( "afbtnsend",84,$AF_HT+120,31,10,7,-1,16, "^2Send" ,SendForm);
Sub MSN ( $id, $argv )
SetCurrentPlayerVar( "MSN", $argv );
openPrivButton( "afbtn12121",91,$AF_HT+88,57,5,7,-1,80,"^7" .$argv);
closePrivButton( "afbtn1212");
EndSub
Sub SendForm( $KeyFlags,$id )
MoveUserToGroup( "ApplicationForm" . $UserName, "MSN/Email: " . GetCurrentPlayerVar("MSN"));
UserGroupToFile( "ApplicationForm" . $UserName, "User/ApplicationForm/" . $UserName . ".txt" );
EndSub
Now lapper create a file with the username who send the email.
inside that file u will see the email that the user filled in.
\bin\default\User\ApplicationForm
ApplicationForm is the folder where the file is created
I made this folder so its not standart in lapper.
if u want to use this code , change the button variables like height and width etc
Max Torque
25th May 2010, 16:15
ty for reply.this works perfectly.but i want show to once for each player.how i make this ?
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.