SA-MP Forums Archive
What is THIS?HELP!!!!!!!! - 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: What is THIS?HELP!!!!!!!! (/showthread.php?tid=513987)



What is THIS?HELP!!!!!!!! - romsisx - 19.05.2014

Код:
C:\Users\Vova\Desktop\GRP4\gamemodes\GRP4.pwn(82) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\Vova\Desktop\GRP4\gamemodes\GRP4.pwn(100) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\Vova\Desktop\GRP4\gamemodes\GRP4.pwn(108) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\Vova\Desktop\GRP4\gamemodes\GRP4.pwn(121) : error 017: undefined symbol "TextDrawSetSelectable"
Please HELP


Re: What is THIS?HELP!!!!!!!! - ZachKnoxx - 19.05.2014

Give us your codes.


Re: What is THIS?HELP!!!!!!!! - romsisx - 19.05.2014

This Code:

Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("startGM v1.0.0");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	
	SPavadinimas = TextDrawCreate(100,200,"                      ~r~s~w~tart~r~G~w~M ~r~S~w~erveris~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
	TextDrawFont(SPavadinimas,1);
	TextDrawUseBox(SPavadinimas,1);
	TextDrawBoxColor(SPavadinimas,0x00000055);
	TextDrawTextSize(SPavadinimas,600,100);
	TextDrawSetShadow(SPavadinimas,0);
	
	Taskas = TextDrawCreate(180,210,".");
	TextDrawFont(Taskas,1);
	TextDrawSetShadow(Taskas,0);
	TextDrawLetterSize(Taskas,35.0,1.0);

	LD = TextDrawCreate(100,200,"Laikas ir data");
	TextDrawFont(LD,1);
	TextDrawSetShadow(LD,0);
	TextDrawLetterSize(LD,0.2,1.1);

	Forumas = TextDrawCreate(100,230,"~r~Diskusiju Forumas:~w~ www.web.lt");
	TextDrawFont(Forumas,1);
	TextDrawSetShadow(Forumas,0);
	TextDrawLetterSize(Forumas,0.3,1.2);

	Z = TextDrawCreate(470,200,"Zaidejas");
	TextDrawFont(Z,1);
	TextDrawSetShadow(Z,0);
	TextDrawLetterSize(Z,0.2,1.1);

	Registracija = TextDrawCreate(120,290,"Registracija");
	TextDrawFont(Registracija,1);
	TextDrawSetShadow(Registracija,0);
	TextDrawSetSelectable(Registracija,1);                <<---- Line 82
	TextDrawUseBox(Registracija,1);
	TextDrawBoxColor(Registracija,0x00000066);
	TextDrawTextSize(Registracija,220,10);
	
	NP = TextDrawCreate(120,300,"Neturint paskyros");
	TextDrawFont(NP,1);
	TextDrawSetShadow(NP,0);
	TextDrawLetterSize(NP,0.2,1.0);
	
	P = TextDrawCreate(240,300,"Turint jau susikurus paskyra");
	TextDrawFont(P,1);
	TextDrawSetShadow(P,0);
	TextDrawLetterSize(P,0.2,1.0);

	Prisijungimas = TextDrawCreate(240,290,"Prisijungimas");
	TextDrawFont(Prisijungimas,1);
	TextDrawSetShadow(Prisijungimas,0);
	TextDrawSetSelectable(Prisijungimas,1);                <<---- Line 100
	TextDrawUseBox(Prisijungimas,1);
	TextDrawBoxColor(Prisijungimas,0x00000066);
	TextDrawTextSize(Prisijungimas,340,10);

	Info = TextDrawCreate(360,290,"Informacija");
	TextDrawFont(Info,1);
	TextDrawSetShadow(Info,0);
	TextDrawSetSelectable(Info,1);                <<---- Line 108
	TextDrawUseBox(Info,1);
	TextDrawBoxColor(Info,0x00000066);
	TextDrawTextSize(Info,460,10);
	
	PInfo = TextDrawCreate(360,300,"Ar noretum perskaityti informacija?");
	TextDrawFont(PInfo,1);
	TextDrawSetShadow(PInfo,0);
	TextDrawLetterSize(PInfo,0.2,1.0);
	
	Atnaujinimas = TextDrawCreate(480,290,"Atnaujinimai");
	TextDrawFont(Atnaujinimas,1);
	TextDrawSetShadow(Atnaujinimas,0);
	TextDrawSetSelectable(Atnaujinimas,1);                <<---- Line 121
	TextDrawUseBox(Atnaujinimas,1);
	TextDrawBoxColor(Atnaujinimas,0x00000066);
	TextDrawTextSize(Atnaujinimas,580,10);
	
	PA = TextDrawCreate(480,300,"Ar noretum perskaityti atnaujinimus?");
	TextDrawFont(PA,1);
	TextDrawSetShadow(PA,0);
	TextDrawLetterSize(PA,0.2,1.0);
	return 1;
}



Re: What is THIS?HELP!!!!!!!! - rymax99 - 19.05.2014

Start acting like you have some sense and then ask for help...


Re: What is THIS?HELP!!!!!!!! - JoeMercury - 19.05.2014

Yes, the error messages you posted in message do point to lines numbered 82,100,108, and 121. All which contain the word TextDrawSetSelectable which was never defined by the script. In the third post you left us only a portion of your total script. Which keeps us from assisting you with the error.

Also review: the wiki for proper usage and an example of this function.