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.
  • Similar Content

    • By seek nephrite
      Salut, imi explica cineva cum fac o ruleta gen cu textdraw-uri cum e pe ruby nephrite? Adica sa arate numele si textdraw ul fiecarui obiect pe care il pun eu in ruleta, etc
    • By StefanFun
      Salut! Am o problemă, când vreau să instalez SA-MP 0.3.7-R2 Windows Server ca să fac un server pur și simplu nu se descarcă nimic și se dă refresh la pagină. Fac ceva greșit? Vă rog să mă ajutați.
    • By Tudor Ionut
      Salut. Am si eu o problema la samp. Caracterul meu daca apas pe tasta f, enter, ctrl, shift da cu pumnul incontinuu. Nu pot intra in masina in casa intr un bussines nicaieri. Multumesc anticipat
    • By Rby Robert
      Am incercat sa bag un crate nou si imi da aceste erori!
      nu stiu de la ce este va rog ajutatima!
      error 025: function heading differs from prototype
    • By EclyseRPGADV
      Salut asta este primul meu textdraw postat.
      Sper sa va placa!
      https://pastebin.com/jtR7AH8v

       
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.