#1

hello i made textdraws using iPLEOMAX's TextDraw Editor and when i try put the textdraws in my gm they dont work here are the textdraws
Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;


Textdraw0 = TextDrawCreate(641.245300, 418.699981, "usebox");
TextDrawLetterSize(Textdraw0, 0.000000, 3.001852);
TextDrawTextSize(Textdraw0, -2.000000, 0.000000);
TextDrawAlignment(Textdraw0, 3);
TextDrawColor(Textdraw0, 0);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 102);
TextDrawSetShadow(Textdraw0, -69);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 2);
TextDrawSetProportional(Textdraw0, 1);

Textdraw1 = TextDrawCreate(642.245300, 419.699981, "usebox");
TextDrawLetterSize(Textdraw1, 0.000000, 3.001852);
TextDrawTextSize(Textdraw1, -2.000000, 0.000000);
TextDrawAlignment(Textdraw1, 3);
TextDrawColor(Textdraw1, 0);
TextDrawUseBox(Textdraw1, true);
TextDrawBoxColor(Textdraw1, 102);
TextDrawSetShadow(Textdraw1, -69);
TextDrawSetOutline(Textdraw1, 0);
TextDrawFont(Textdraw1, 2);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(8.301892, 424.666717, "TG Freeroam");
TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, 16711935);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 1);
TextDrawBackgroundColor(Textdraw2, 51);
TextDrawFont(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);

Textdraw3 = TextDrawCreate(144.905624, 420.000061, "/cmds");
TextDrawLetterSize(Textdraw3, 0.320942, 2.346666);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, -16776961);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 0);
TextDrawBackgroundColor(Textdraw3, 51);
TextDrawFont(Textdraw3, 1);
TextDrawSetProportional(Textdraw3, 1);

Textdraw4 = TextDrawCreate(213.075424, 421.000091, "/help");
TextDrawLetterSize(Textdraw4, 0.320942, 2.346666);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, -16776961);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 0);
TextDrawBackgroundColor(Textdraw4, 51);
TextDrawFont(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);

Textdraw5 = TextDrawCreate(272.943420, 421.066772, "/god");
TextDrawLetterSize(Textdraw5, 0.320942, 2.346666);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, -16776961);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 0);
TextDrawBackgroundColor(Textdraw5, 51);
TextDrawFont(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 1);

Textdraw6 = TextDrawCreate(333.566101, 421.133453, "/admins");
TextDrawLetterSize(Textdraw6, 0.320942, 2.346666);
TextDrawAlignment(Textdraw6, 1);
TextDrawColor(Textdraw6, -16776961);
TextDrawSetShadow(Textdraw6, 0);
TextDrawSetOutline(Textdraw6, 0);
TextDrawBackgroundColor(Textdraw6, 51);
TextDrawFont(Textdraw6, 1);
TextDrawSetProportional(Textdraw6, 1);

Textdraw7 = TextDrawCreate(404.000244, 422.133453, "/car");
TextDrawLetterSize(Textdraw7, 0.320942, 2.346666);
TextDrawAlignment(Textdraw7, 1);
TextDrawColor(Textdraw7, -16776961);
TextDrawSetShadow(Textdraw7, 0);
TextDrawSetOutline(Textdraw7, 0);
TextDrawBackgroundColor(Textdraw7, 51);
TextDrawFont(Textdraw7, 1);
TextDrawSetProportional(Textdraw7, 1);

Textdraw8 = TextDrawCreate(454.811309, 421.266815, "/credits");
TextDrawLetterSize(Textdraw8, 0.320942, 2.346666);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, -16776961);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 0);
TextDrawBackgroundColor(Textdraw8, 51);
TextDrawFont(Textdraw8, 1);
TextDrawSetProportional(Textdraw8, 1);

Textdraw9 = TextDrawCreate(9.301892, 425.666717, "TG Freeroam");
TextDrawLetterSize(Textdraw9, 0.449999, 1.600000);
TextDrawAlignment(Textdraw9, 1);
TextDrawColor(Textdraw9, 16711935);
TextDrawSetShadow(Textdraw9, 0);
TextDrawSetOutline(Textdraw9, 1);
TextDrawBackgroundColor(Textdraw9, 51);
TextDrawFont(Textdraw9, 1);
TextDrawSetProportional(Textdraw9, 1);
And here is where i put them
Код:
public OnGameModeInit()
{
	SetGameModeText("Top Gods Freeroam");
	ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
	ShowNameTags(1);
	SetNameTagDrawDistance(40.0);
	EnableStuntBonusForAll(0);
	DisableInteriorEnterExits();
	SetWeather(2);
	SetWorldTime(11);
	
	box = TextDrawCreate(641.245300, 418.699981, "usebox");
	TextDrawLetterSize(box, 0.000000, 3.001852);
	TextDrawTextSize(box, -2.000000, 0.000000);
	TextDrawAlignment(box, 3);
	TextDrawColor(box, 0);
	TextDrawUseBox(box, true);
	TextDrawBoxColor(box, 102);
	TextDrawSetShadow(box, -69);
	TextDrawSetOutline(box, 0);
	TextDrawFont(box, 2);
	TextDrawSetProportional(box, 1);

	Textdraw1 = TextDrawCreate(642.245300, 419.699981, "usebox");
	TextDrawLetterSize(Textdraw1, 0.000000, 3.001852);
	TextDrawTextSize(Textdraw1, -2.000000, 0.000000);
	TextDrawAlignment(Textdraw1, 3);
	TextDrawColor(Textdraw1, 0);
	TextDrawUseBox(Textdraw1, true);
	TextDrawBoxColor(Textdraw1, 102);
	TextDrawSetShadow(Textdraw1, -69);
	TextDrawSetOutline(Textdraw1, 0);
	TextDrawFont(Textdraw1, 2);
	TextDrawSetProportional(Textdraw1, 1);

	Textdraw2 = TextDrawCreate(8.301892, 424.666717, "TG Freeroam");
	TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
	TextDrawAlignment(Textdraw2, 1);
	TextDrawColor(Textdraw2, 16711935);
	TextDrawSetShadow(Textdraw2, 0);
	TextDrawSetOutline(Textdraw2, 1);
	TextDrawBackgroundColor(Textdraw2, 51);
	TextDrawFont(Textdraw2, 1);
	TextDrawSetProportional(Textdraw2, 1);

	Textdraw3 = TextDrawCreate(144.905624, 420.000061, "/cmds");
	TextDrawLetterSize(Textdraw3, 0.320942, 2.346666);
	TextDrawAlignment(Textdraw3, 1);
	TextDrawColor(Textdraw3, -16776961);
	TextDrawSetShadow(Textdraw3, 0);
	TextDrawSetOutline(Textdraw3, 0);
	TextDrawBackgroundColor(Textdraw3, 51);
	TextDrawFont(Textdraw3, 1);
	TextDrawSetProportional(Textdraw3, 1);

	Textdraw4 = TextDrawCreate(213.075424, 421.000091, "/help");
	TextDrawLetterSize(Textdraw4, 0.320942, 2.346666);
	TextDrawAlignment(Textdraw4, 1);
	TextDrawColor(Textdraw4, -16776961);
	TextDrawSetShadow(Textdraw4, 0);
	TextDrawSetOutline(Textdraw4, 0);
	TextDrawBackgroundColor(Textdraw4, 51);
	TextDrawFont(Textdraw4, 1);
	TextDrawSetProportional(Textdraw4, 1);

	Textdraw5 = TextDrawCreate(272.943420, 421.066772, "/god");
	TextDrawLetterSize(Textdraw5, 0.320942, 2.346666);
	TextDrawAlignment(Textdraw5, 1);
	TextDrawColor(Textdraw5, -16776961);
	TextDrawSetShadow(Textdraw5, 0);
	TextDrawSetOutline(Textdraw5, 0);
	TextDrawBackgroundColor(Textdraw5, 51);
	TextDrawFont(Textdraw5, 1);
	TextDrawSetProportional(Textdraw5, 1);

	Textdraw6 = TextDrawCreate(333.566101, 421.133453, "/admins");
	TextDrawLetterSize(Textdraw6, 0.320942, 2.346666);
	TextDrawAlignment(Textdraw6, 1);
	TextDrawColor(Textdraw6, -16776961);
	TextDrawSetShadow(Textdraw6, 0);
	TextDrawSetOutline(Textdraw6, 0);
	TextDrawBackgroundColor(Textdraw6, 51);
	TextDrawFont(Textdraw6, 1);
	TextDrawSetProportional(Textdraw6, 1);

	Textdraw7 = TextDrawCreate(404.000244, 422.133453, "/car");
	TextDrawLetterSize(Textdraw7, 0.320942, 2.346666);
	TextDrawAlignment(Textdraw7, 1);
	TextDrawColor(Textdraw7, -16776961);
	TextDrawSetShadow(Textdraw7, 0);
	TextDrawSetOutline(Textdraw7, 0);
	TextDrawBackgroundColor(Textdraw7, 51);
	TextDrawFont(Textdraw7, 1);
	TextDrawSetProportional(Textdraw7, 1);

	Textdraw8 = TextDrawCreate(454.811309, 421.266815, "/credits");
	TextDrawLetterSize(Textdraw8, 0.320942, 2.346666);
	TextDrawAlignment(Textdraw8, 1);
	TextDrawColor(Textdraw8, -16776961);
	TextDrawSetShadow(Textdraw8, 0);
	TextDrawSetOutline(Textdraw8, 0);
	TextDrawBackgroundColor(Textdraw8, 51);
	TextDrawFont(Textdraw8, 1);
	TextDrawSetProportional(Textdraw8, 1);

	Textdraw9 = TextDrawCreate(9.301892, 425.666717, "TG Freeroam");
	TextDrawLetterSize(Textdraw9, 0.449999, 1.600000);
	TextDrawAlignment(Textdraw9, 1);
	TextDrawColor(Textdraw9, 16711935);
	TextDrawSetShadow(Textdraw9, 0);
	TextDrawSetOutline(Textdraw9, 1);
	TextDrawBackgroundColor(Textdraw9, 51);
	TextDrawFont(Textdraw9, 1);
	TextDrawSetProportional(Textdraw9, 1);
Reply
#2

Is there really nobody that can help i will +REP
Reply
#3

Bump
Reply
#4

You've created them but you haven't displayed them for the player. You may want to do this in OnPlayerConnect.
Reply
#5

You just created them in the gamemode but they can't work as you wish without coding that too, Use
PHP код:
public OnPlayerConnect 
and display them
Reply
#6

i put it on public OnPlayerConnect still dont show
Reply
#7

Bump need help asap
Reply
#8

The same shit is with my GM..
Reply
#9

Quote:
Originally Posted by Mckarlis
Посмотреть сообщение
Bump need help asap
as BKarner said, you've merely created these Textdraws.

What you need to do to make them visible to players is this: TextDrawShowForPlayer
example:

pawn Код:
//-inside some command, for example-//
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
TextDrawShowForPlayer(playerid,Textdraw5);
TextDrawShowForPlayer(playerid,Textdraw6);
TextDrawShowForPlayer(playerid,Textdraw7);
TextDrawShowForPlayer(playerid,Textdraw8);
TextDrawShowForPlayer(playerid,Textdraw9);
//will show them all
you can hide them again ofc. using TextDrawHideForPlayer - simple.


but i highly recommend you to use PlayerTextdraw's
they get destroyed automatically after the player showing them disconnects
so you don'tr have to worry about that part
and you can surpass the max textdraws limit like this (256 per player)
Reply
#10

Quote:
Originally Posted by CutX
Посмотреть сообщение
as BKarner said, you've merely created these Textdraws.

What you need to do to make the visible to players is this: TextDrawShowForPlayer
example:

pawn Код:
//-inside some command, for example-//
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
TextDrawShowForPlayer(playerid,Textdraw5);
TextDrawShowForPlayer(playerid,Textdraw6);
TextDrawShowForPlayer(playerid,Textdraw7);
TextDrawShowForPlayer(playerid,Textdraw8);
TextDrawShowForPlayer(playerid,Textdraw9);
//will show them all
you can hide them again ofc. using TextDrawHideForPlayer - simple.


but i highly recommend you to use PlayerTextdraw's
they get destroyed automatically after the player showing themdisconnects
and you can surpass the max textdraws limit like this (256 per player)
thank you +REp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)