Jump to content
  • 0

Ajutor TextDraw


andybtv

Question

Buna ziua,

Vreau sa fac un Fs in care sa imi scrie intr-un colt, un text mereu cat este serverul pornit.

Fs-ul l-am facut dar am 2 erori:

eroare 1:C:\Documents and Settings\Andrei\Desktop\Sa-mp server\pawno\Text.pwn(65) : error 017: undefined symbol "ShowTextDrawForPlayer"


eroare 2: C:\Documents and Settings\Andrei\Desktop\Sa-mp server\pawno\Text.pwn(71) : error 017: undefined symbol "HideTextDrawForPlayer"
Acesta este FS-ul
#include <a_samp>



#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

new Text:Textdraw3;

public OnGameModeInit()
{
Textdraw3 = TextDrawCreate(170.000000,417.000000,"Andrei");
	TextDrawAlignment(Textdraw3,0);
	TextDrawBackgroundColor(Textdraw3,0xFFFF00AA);
	TextDrawFont(Textdraw3,3);
	TextDrawLetterSize(Textdraw3,0.499999,1.700000);
	TextDrawColor(Textdraw3,0xAA3333AA);
	TextDrawSetProportional(Textdraw3,1);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnPlayerConnect(playerid)
{
   ShowTextDrawForPlayer(playerid,Textdraw3);
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
   HideTextDrawForPlayer(playerid,Textdraw3);
	return 1;
}

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

eu cred ca trebuie sa iei iar include-ul "a_samp" ca sa iti mearga "ShowTextDrawForPlayer" si "HideTextDrawForPlayer"...sper ca acum iti merge ;D

EDIT: E cum a zis niko mai jos, nu e ShowTextDrawForPlayer ci TextDrawShowForPlayer si HideTextDrawForPlayer e TextDrawHideForPlayer

PS: Scuza-ti-mi greseala :(

Link to comment
Share on other sites

Guest [Sapd]Niko17

fa un text draw asa:

new Text:Textdraw0;
new Text:Textdraw1;
   Textdraw0 = TextDrawCreate(1.000000,428.000000," Textul tau)");
   Textdraw1 = TextDrawCreate(1.000000,1.000000," ");
   TextDrawAlignment(Textdraw0,0);
   TextDrawAlignment(Textdraw1,0);
   TextDrawBackgroundColor(Textdraw0,COLOR_BLUE);
   TextDrawBackgroundColor(Textdraw1,COLOR_BLUE);
   TextDrawFont(Textdraw0,3);
   TextDrawLetterSize(Textdraw0,1.000000,1.000000);
   TextDrawFont(Textdraw1,3);
   TextDrawLetterSize(Textdraw1,1.000000,1.000000);
   TextDrawColor(Textdraw0,COLOR_BLUE);
   TextDrawColor(Textdraw1,COLOR_BLUE);
   TextDrawSetOutline(Textdraw0,1);
   TextDrawSetOutline(Textdraw1,1);
   TextDrawSetProportional(Textdraw0,1);
   TextDrawSetProportional(Textdraw1,1);
   TextDrawSetShadow(Textdraw0,1);
   TextDrawSetShadow(Textdraw1,1);
Si Casa Fie Mereu Pui Asta:
TextDrawShowForPlayer(playerid,Texd);

Link to comment
Share on other sites

NiKoR17" post="17505" timestamp="1250956388"]

fa un text draw asa:

new Text:Textdraw0;
new Text:Textdraw1;
   Textdraw0 = TextDrawCreate(1.000000,428.000000," Textul tau)");
   Textdraw1 = TextDrawCreate(1.000000,1.000000," ");
   TextDrawAlignment(Textdraw0,0);
   TextDrawAlignment(Textdraw1,0);
   TextDrawBackgroundColor(Textdraw0,COLOR_BLUE);
   TextDrawBackgroundColor(Textdraw1,COLOR_BLUE);
   TextDrawFont(Textdraw0,3);
   TextDrawLetterSize(Textdraw0,1.000000,1.000000);
   TextDrawFont(Textdraw1,3);
   TextDrawLetterSize(Textdraw1,1.000000,1.000000);
   TextDrawColor(Textdraw0,COLOR_BLUE);
   TextDrawColor(Textdraw1,COLOR_BLUE);
   TextDrawSetOutline(Textdraw0,1);
   TextDrawSetOutline(Textdraw1,1);
   TextDrawSetProportional(Textdraw0,1);
   TextDrawSetProportional(Textdraw1,1);
   TextDrawSetShadow(Textdraw0,1);
   TextDrawSetShadow(Textdraw1,1);
Si Casa Fie Mereu Pui Asta:
TextDrawShowForPlayer(playerid,Texd);

Mda.. asa merge,adica nu mai imi da nicio eroare sau vre-un warning, dar nu vad nimica pe ecran si nu stiu de ce ??? ??? ?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.