Help please..register and login problem
#1

I created a register and login system through Ipeola's textdraw editor..then i compiled it...after that i open my pawno with my gm..and i wanted to add the textdraw system...so i created some new variable which were from the .pwn file which i made through Ipeolamax's textdraw....such as Textdraw1..textdraw2 and more...i added the variables like this

Код:
new Text:Registerbox
new Text:Registerwelcome;
new Text:Username;
new Text:Password;
new Text:Usernamebox;
new Text:Passwordbox;
new Text:Continuebox;
new Text:Continue;
this are the name of each of the textdraw i made in ipeolamax..then i added this variables with the textdraw code in OnGameInit which was

Код:
Registerbox = TextDrawCreate(639.599975, 132.166656, "usebox");
TextDrawLetterSize(Registerbox, 0.000000, 22.498149);
TextDrawTextSize(Registerbox, -2.000000, 0.000000);
TextDrawAlignment(Registerbox, 1);
TextDrawColor(Registerbox, 0);
TextDrawUseBox(Registerbox, true);
TextDrawBoxColor(Registerbox, 102);
TextDrawSetShadow(Registerbox, 0);
TextDrawSetOutline(Registerbox, 0);
TextDrawFont(Registerbox, 0);

Registerwelcome = TextDrawCreate(23.200012, 139.626632, "Welcome To Rusted-Rp..Enter Your Password And Username To Continue");
TextDrawLetterSize(Registerwelcome, 0.365197, 1.853865);
TextDrawAlignment(Registerwelcome, 1);
TextDrawColor(Registerwelcome, 16711935);
TextDrawSetShadow(Registerwelcome, 0);
TextDrawSetOutline(Registerwelcome, 1);
TextDrawBackgroundColor(Registerwelcome, 51);
TextDrawFont(Registerwelcome, 2);
TextDrawSetProportional(Registerwelcome, 1);

Username = TextDrawCreate(108.000000, 185.919998, "Username");
TextDrawLetterSize(Username, 0.565199, 2.451199);
TextDrawAlignment(Username, 1);
TextDrawColor(Username, -1);
TextDrawSetShadow(Username, 7);
TextDrawSetOutline(Username, 0);
TextDrawBackgroundColor(Username, 51);
TextDrawFont(Username, 2);
TextDrawSetProportional(Username, 1);

Password = TextDrawCreate(108.799987, 236.693328, "Password");
TextDrawLetterSize(Password, 0.577198, 2.413861);
TextDrawAlignment(Password, 1);
TextDrawColor(Password, -1);
TextDrawSetShadow(Password, 7);
TextDrawSetOutline(Password, 0);
TextDrawBackgroundColor(Password, 51);
TextDrawFont(Password, 2);
TextDrawSetProportional(Password, 1);

Usernamebox = TextDrawCreate(514.799987, 188.166656, "usebox");
TextDrawLetterSize(Usernamebox, 0.000000, 2.338148);
TextDrawTextSize(Usernamebox, 270.800018, 0.000000);
TextDrawAlignment(Usernamebox, 1);
TextDrawColor(Usernamebox, 0);
TextDrawUseBox(Usernamebox, true);
TextDrawBoxColor(Usernamebox, 102);
TextDrawSetShadow(Usernamebox, 0);
TextDrawSetOutline(Usernamebox, 0);
TextDrawFont(Usernamebox, 0);

Passwordbox = TextDrawCreate(515.599975, 238.940093, "usebox");
TextDrawLetterSize(Passwordbox, 0.000000, 2.172221);
TextDrawTextSize(Passwordbox, 270.800018, 0.000000);
TextDrawAlignment(Passwordbox, 1);
TextDrawColor(Passwordbox, 0);
TextDrawUseBox(Passwordbox, true);
TextDrawBoxColor(Passwordbox, 102);
TextDrawSetShadow(Passwordbox, 0);
TextDrawSetOutline(Passwordbox, 0);
TextDrawFont(Passwordbox, 0);

Continuebox = TextDrawCreate(388.399993, 302.406677, "usebox");
TextDrawLetterSize(Continuebox, 0.000000, 2.338148);
TextDrawTextSize(Continuebox, 246.799987, 0.000000);
TextDrawAlignment(Continuebox, 1);
TextDrawColor(Continuebox, 0);
TextDrawUseBox(Continuebox, true);
TextDrawBoxColor(Continuebox, 102);
TextDrawSetShadow(Continuebox, 0);
TextDrawSetOutline(Continuebox, 0);
TextDrawFont(Continuebox, 0);

Continue = TextDrawCreate(272.000030, 304.639953, "Continue");
TextDrawLetterSize(Continue, 0.449999, 1.600000);
TextDrawAlignment(Continue, 1);
TextDrawColor(Continue, -1);
TextDrawSetShadow(Continue, 0);
TextDrawSetOutline(Continue, 1);
TextDrawBackgroundColor(Continue, 51);
TextDrawFont(Continue, 2);
TextDrawSetProportional(Continue, 1);
TextDrawSetSelectable(Continue, true);
But when i compiled...its showing like this
Код:
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(52) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(53) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(54) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(55) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(56) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(57) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(58) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(59) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(60) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(61) : error 017: undefined symbol "Registerbox"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(63) : error 017: undefined symbol "Registerwelcome"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(64) : error 017: undefined symbol "Registerwelcome"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(65) : error 017: undefined symbol "Registerwelcome"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(66) : error 017: undefined symbol "Registerwelcome"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(67) : error 017: undefined symbol "Registerwelcome"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(68) : error 017: undefined symbol "Registerwelcome"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(69) : error 017: undefined symbol "Registerwelcome"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(70) : error 017: undefined symbol "Registerwelcome"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(71) : error 017: undefined symbol "Registerwelcome"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(73) : error 017: undefined symbol "Username"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(74) : error 017: undefined symbol "Username"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(75) : error 017: undefined symbol "Username"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(76) : error 017: undefined symbol "Username"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(77) : error 017: undefined symbol "Username"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(78) : error 017: undefined symbol "Username"
C:\Users\Personal\Desktop\samp\gamemodes\rrp.pwn(79) : error 017: undefined symbol "Username"
Please Help me...What Should i do?
Reply
#2

new Text:Registerbox
replace
new Text:Registerbox;
Reply
#3

Quote:
Originally Posted by quochuy
Посмотреть сообщение
new Text:Registerbox
replace
new Text:Registerbox;
But after adding...it is still showing the same errors
Reply
#4

Use this

new Text:Registerbox;
new Text:Registerwelcome;
new Text:Username;
new Text:Password;
new Text:Usernamebox;
new Text:Passwordbox;
new Text:Continuebox;
new Text:Continue;
Reply
#5

Quote:
Originally Posted by Owen007
Посмотреть сообщение
Use this

new Text:Registerbox;
new Text:Registerwelcome;
new Text:Username;
new Text:Password;
new Text:Usernamebox;
new Text:Passwordbox;
new Text:Continuebox;
new Text:Continue;
Nothing change bro...Please Helpp
Reply
#6

Hello.

Put this under the #includes:
PHP код:
new Text:Registerbox
new Text:Registerwelcome;
new 
Text:Username;
new 
Text:Password;
new 
Text:Usernamebox;
new 
Text:Passwordbox;
new 
Text:Continuebox;
new 
Text:Continuee
and this in OnGameModeInit:
PHP код:
Registerbox TextDrawCreate(639.599975132.166656"usebox");
TextDrawLetterSize(Registerbox0.00000022.498149);
TextDrawTextSize(Registerbox, -2.0000000.000000);
TextDrawAlignment(Registerbox1);
TextDrawColor(Registerbox0);
TextDrawUseBox(Registerboxtrue);
TextDrawBoxColor(Registerbox102);
TextDrawSetShadow(Registerbox0);
TextDrawSetOutline(Registerbox0);
TextDrawFont(Registerbox0);
Registerwelcome TextDrawCreate(23.200012139.626632"Welcome To Rusted-Rp..Enter Your Password And Username To Continue");
TextDrawLetterSize(Registerwelcome0.3651971.853865);
TextDrawAlignment(Registerwelcome1);
TextDrawColor(Registerwelcome16711935);
TextDrawSetShadow(Registerwelcome0);
TextDrawSetOutline(Registerwelcome1);
TextDrawBackgroundColor(Registerwelcome51);
TextDrawFont(Registerwelcome2);
TextDrawSetProportional(Registerwelcome1);
Username TextDrawCreate(108.000000185.919998"Username");
TextDrawLetterSize(Username0.5651992.451199);
TextDrawAlignment(Username1);
TextDrawColor(Username, -1);
TextDrawSetShadow(Username7);
TextDrawSetOutline(Username0);
TextDrawBackgroundColor(Username51);
TextDrawFont(Username2);
TextDrawSetProportional(Username1);
Password TextDrawCreate(108.799987236.693328"Password");
TextDrawLetterSize(Password0.5771982.413861);
TextDrawAlignment(Password1);
TextDrawColor(Password, -1);
TextDrawSetShadow(Password7);
TextDrawSetOutline(Password0);
TextDrawBackgroundColor(Password51);
TextDrawFont(Password2);
TextDrawSetProportional(Password1);
Usernamebox TextDrawCreate(514.799987188.166656"usebox");
TextDrawLetterSize(Usernamebox0.0000002.338148);
TextDrawTextSize(Usernamebox270.8000180.000000);
TextDrawAlignment(Usernamebox1);
TextDrawColor(Usernamebox0);
TextDrawUseBox(Usernameboxtrue);
TextDrawBoxColor(Usernamebox102);
TextDrawSetShadow(Usernamebox0);
TextDrawSetOutline(Usernamebox0);
TextDrawFont(Usernamebox0);
Passwordbox TextDrawCreate(515.599975238.940093"usebox");
TextDrawLetterSize(Passwordbox0.0000002.172221);
TextDrawTextSize(Passwordbox270.8000180.000000);
TextDrawAlignment(Passwordbox1);
TextDrawColor(Passwordbox0);
TextDrawUseBox(Passwordboxtrue);
TextDrawBoxColor(Passwordbox102);
TextDrawSetShadow(Passwordbox0);
TextDrawSetOutline(Passwordbox0);
TextDrawFont(Passwordbox0);
Continuebox TextDrawCreate(388.399993302.406677"usebox");
TextDrawLetterSize(Continuebox0.0000002.338148);
TextDrawTextSize(Continuebox246.7999870.000000);
TextDrawAlignment(Continuebox1);
TextDrawColor(Continuebox0);
TextDrawUseBox(Continueboxtrue);
TextDrawBoxColor(Continuebox102);
TextDrawSetShadow(Continuebox0);
TextDrawSetOutline(Continuebox0);
TextDrawFont(Continuebox0);
Continuee TextDrawCreate(272.000030304.639953"Continue");
TextDrawLetterSize(Continuee0.4499991.600000);
TextDrawAlignment(Continuee1);
TextDrawColor(Continuee, -1);
TextDrawSetShadow(Continuee0);
TextDrawSetOutline(Continuee1);
TextDrawBackgroundColor(Continuee51);
TextDrawFont(Continuee2);
TextDrawSetProportional(Continuee1);
TextDrawSetSelectable(Continueetrue); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)