PlayerTextDraw [0.3x] problem!
#1

I got a problem with 0.3x playertextdraws, it doesn't show ingame but pawno compiles without errors. Using adr1's 0.3x playertextdraw edition of zamaroht's.


new PlayerText:i11;

//onplayerconnect:
PlayerTextDrawShow(playerid, i11);

//onplayerconnect
i11 = CreatePlayerTextDraw(playerid,242.000000, 339.000000, "New Textdraw");
PlayerTextDrawBackgroundColor(playerid,i11, 255);
PlayerTextDrawFont(playerid,i11, 5);
PlayerTextDrawLetterSize(playerid,i11, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,i11, -1);
PlayerTextDrawSetOutline(playerid,i11, 0);
PlayerTextDrawSetProportional(playerid,i11, 1);
PlayerTextDrawSetShadow(playerid,i11, 1);
PlayerTextDrawUseBox(playerid,i11, 1);
PlayerTextDrawBoxColor(playerid,i11, 255);
PlayerTextDrawTextSize(playerid,i11, 144.000000, 96.000000);
PlayerTextDrawSetPreviewModel(playerid, i11, 487);
PlayerTextDrawSetPreviewRot(playerid, i11, -16.000000, 0.000000, -55.000000, 1.000000);
PlayerTextDrawSetSelectable(playerid,i11, 0);

anyone know how to fix?
Reply
#2

pawn Код:
PlayerTextDrawShow(playerid, i11);
Needs to be after you create the Textdraw logical! You can't show a textdraw which isn't even created.
Reply
#3

if you want to show it for all whole time then
new PlayerText:i11;



//ongamemodeint
i11 = CreatePlayerTextDraw(playerid,242.000000, 339.000000, "New Textdraw");
PlayerTextDrawBackgroundColor(playerid,i11, 255);
PlayerTextDrawFont(playerid,i11, 5);
PlayerTextDrawLetterSize(playerid,i11, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,i11, -1);
PlayerTextDrawSetOutline(playerid,i11, 0);
PlayerTextDrawSetProportional(playerid,i11, 1);
PlayerTextDrawSetShadow(playerid,i11, 1);
PlayerTextDrawUseBox(playerid,i11, 1);
PlayerTextDrawBoxColor(playerid,i11, 255);
PlayerTextDrawTextSize(playerid,i11, 144.000000, 96.000000);
PlayerTextDrawSetPreviewModel(playerid, i11, 487);
PlayerTextDrawSetPreviewRot(playerid, i11, -16.000000, 0.000000, -55.000000, 1.000000);
PlayerTextDrawSetSelectable(playerid,i11, 0);

//onplayerconnect:
PlayerTextDrawShow(playerid, i11);

If you want player textdraw for each player then

new PlayerText:Textdraw0[MAX_PLAYERS];

//onplayerconnect:
Textdraw0[playerid] = CreatePlayerTextDraw(playerid,242.000000, 339.000000, "New Textdraw");
PlayerTextDrawAlignment(playerid,Textdraw0[playerid], 2);


// When you want to show it use
PlayerTextDrawShow(playerid, PlayerText:Textdraw0[playerid]);

Hope you got it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)