Textdraws not displaying (I believe after 0.3.7).
#1

I might be missing something, but I'm not sure why my textdraws are no longer showing. Here's where I'm showing them:

pawn Код:
CMD:tdtest(playerid, params[])
{
    TextDrawShowForPlayer(playerid, LArmBlTD);
    TextDrawShowForPlayer(playerid, RArmBlab);
    TextDrawShowForPlayer(playerid, TorsoBlTD);
    TextDrawShowForPlayer(playerid, GroinBlTD);
    TextDrawShowForPlayer(playerid, HeadshotTD);
    return 1;
}
Where they're created (Under OnGameModeInit).
pawn Код:
//BODY PART DAMAGE TEXTDRAWS
    LArmBlTD = TextDrawCreate(530 ,370 , "Left Arm: Bleeding");
    TextDrawFont(LArmBlTD , 1);
    TextDrawLetterSize(LArmBlTD , 0.2, 1.4000000000000001);
    TextDrawColor(LArmBlTD , 0xff0000FF);
    TextDrawSetOutline(LArmBlTD , true);
    TextDrawSetProportional(LArmBlTD , true);
    TextDrawSetShadow(LArmBlTD , 1);
   
    //TextDrawShowForPlayer(playerid,LArmBlTD);
    LArmBrTD = TextDrawCreate(530 ,370 , "Left Arm: Broken");
    TextDrawFont(LArmBrTD , 1);
    TextDrawLetterSize(LArmBrTD , 0.2, 1.4000000000000001);
    TextDrawColor(LArmBrTD , 0xff0000FF);
    TextDrawSetOutline(LArmBrTD , true);
    TextDrawSetProportional(LArmBrTD , true);
    TextDrawSetShadow(LArmBrTD , 1);
    //TextDrawShowForPlayer(playerid,LArmBrTD);

    LArmBlab = TextDrawCreate(530 ,370 , "Left Arm: Broken & Bleeding");
    TextDrawFont(LArmBlab , 1);
    TextDrawLetterSize(LArmBlab , 0.2, 1.4000000000000001);
    TextDrawColor(LArmBlab , 0xff0000FF);
    TextDrawSetOutline(LArmBlab , true);
    TextDrawSetProportional(LArmBlab , true);
    TextDrawSetShadow(LArmBlab , 1);
   
    //TextDrawShowForPlayer(playerid,LArmBlab);
   
    RArmBlTD = TextDrawCreate(530 ,350 , "Right Arm: Bleeding");
    TextDrawFont(RArmBlTD , 1);
    TextDrawLetterSize(RArmBlTD , 0.2, 1.4000000000000001);
    TextDrawColor(RArmBlTD , 0xff0000FF);
    TextDrawSetOutline(RArmBlTD , true);
    TextDrawSetProportional(RArmBlTD , true);
    TextDrawSetShadow(RArmBlTD , 1);

    //TextDrawShowForPlayer(playerid,BFText);
   
    // Blindfold
    BFText = TextDrawCreate(641.199951, 1.500000, "usebox");
    TextDrawLetterSize(BFText, 0.000000, 49.378147);
    TextDrawTextSize(BFText, -2.000000, 0.000000);
    TextDrawAlignment(BFText, 3);
    TextDrawColor(BFText, -1);
    TextDrawUseBox(BFText, true);
    TextDrawBoxColor(BFText, 255);
    TextDrawSetShadow(BFText, 0);
    TextDrawSetOutline(BFText, 0);
    TextDrawBackgroundColor(BFText, 255);
    TextDrawFont(BFText, 1);
   


    RArmBrTD = TextDrawCreate(530 ,350 , "Right Arm: Broken");
    TextDrawFont(RArmBrTD , 1);
    TextDrawLetterSize(RArmBrTD , 0.2, 1.4000000000000001);
    TextDrawColor(RArmBrTD , 0xff0000FF);
    TextDrawSetOutline(RArmBrTD , true);
    TextDrawSetProportional(RArmBrTD , true);
    TextDrawSetShadow(RArmBrTD , 1);
   
    //TextDrawShowForPlayer(playerid,RArmBrTD);

    RArmBlab = TextDrawCreate(530 ,350, "Right Arm: Broken & Bleeding");
    TextDrawFont(RArmBlab , 1);
    TextDrawLetterSize(RArmBlab , 0.2, 1.4000000000000001);
    TextDrawColor(RArmBlab , 0xff0000FF);
    TextDrawSetOutline(RArmBlab , true);
    TextDrawSetProportional(RArmBlab , true);
    TextDrawSetShadow(RArmBlab , 1);
   
    //TextDrawShowForPlayer(playerid,RArmBlab);
   
    TorsoBlTD = TextDrawCreate(530 ,330 , "Chest: Bleeding"); //530 390
    TextDrawFont(TorsoBlTD , 1);
    TextDrawLetterSize(TorsoBlTD , 0.2, 1.4000000000000001);
    TextDrawColor(TorsoBlTD , 0xff0000FF);
    TextDrawSetOutline(TorsoBlTD , true);
    TextDrawSetProportional(TorsoBlTD , true);
    TextDrawSetShadow(TorsoBlTD , 1);
   
    //TextDrawShowForPlayer(playerid,TorsoBlTD);
    GroinBlTD = TextDrawCreate(530 ,390 , "Groin: Bleeding");
    TextDrawFont(GroinBlTD , 1);
    TextDrawLetterSize(GroinBlTD , 0.2, 1.4000000000000001);
    TextDrawColor(GroinBlTD , 0xff0000FF);
    TextDrawSetOutline(GroinBlTD , true);
    TextDrawSetProportional(GroinBlTD , true);
    TextDrawSetShadow(GroinBlTD , 1);
   
    LLegBlab = TextDrawCreate(530 ,410, "Left Leg: Broken & Bleeding");
    TextDrawFont(LLegBlab , 1);
    TextDrawLetterSize(LLegBlab , 0.2, 1.4000000000000001);
    TextDrawColor(LLegBlab , 0xff0000FF);
    TextDrawSetOutline(LLegBlab , true);
    TextDrawSetProportional(LLegBlab , true);
    TextDrawSetShadow(LLegBlab , 1);
   
    RLegBlab = TextDrawCreate(530 ,430, "Right Leg: Broken & Bleeding");
    TextDrawFont(RLegBlab , 1);
    TextDrawLetterSize(RLegBlab , 0.2, 1.4000000000000001);
    TextDrawColor(RLegBlab , 0xff0000FF);
    TextDrawSetOutline(RLegBlab , true);
    TextDrawSetProportional(RLegBlab , true);
    TextDrawSetShadow(RLegBlab , 1);
   
    LLegBlTD = TextDrawCreate(530 ,410, "Left Leg: Bleeding");
    TextDrawFont(LLegBlTD , 1);
    TextDrawLetterSize(LLegBlTD , 0.2, 1.4000000000000001);
    TextDrawColor(LLegBlTD , 0xff0000FF);
    TextDrawSetOutline(LLegBlTD , true);
    TextDrawSetProportional(LLegBlTD , true);
    TextDrawSetShadow(LLegBlTD , 1);
   
    RLegBlTD = TextDrawCreate(530 ,430, "Right Leg: Bleeding");
    TextDrawFont(RLegBlTD , 1);
    TextDrawLetterSize(RLegBlTD , 0.2, 1.4000000000000001);
    TextDrawColor(RLegBlTD , 0xff0000FF);
    TextDrawSetOutline(RLegBlTD , true);
    TextDrawSetProportional(RLegBlTD , true);
    TextDrawSetShadow(RLegBlTD , 1);

    //TextDrawShowForPlayer(playerid,GroinBlTD);
   
    HeadshotTD = TextDrawCreate(530 ,310 , "HEADSHOT");
    TextDrawFont(HeadshotTD , 1);
    TextDrawLetterSize(HeadshotTD , 0.2, 1.4000000000000001);
    TextDrawColor(HeadshotTD , 0xff0000FF);
    TextDrawSetOutline(HeadshotTD , true);
    TextDrawSetProportional(HeadshotTD , true);
    TextDrawSetShadow(HeadshotTD , 1);
Reply
#2

Why you make that as comment? // ?
Reply
#3

I was reading from that, but that doesn't make a difference
Reply
#4

Your variable names are all wrong. You're not showing the right ones.
Reply
#5

I know, I've not added them all here, they worked before 0.3.7 and now they don't display at all.

UPDATED.
Reply
#6

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
Why you make that as comment? // ?
Completely off topic but your sig is ridiculous
Reply
#7

Show us where you're defining "LArmBlTD"
Reply
#8

pawn Код:
new Text:LArmBlTD;
new Text:LArmBlab; // & BROKEN
new Text:LArmBrTD;
new Text:RArmBlTD;
new Text:RArmBlab; //& BROKEN
new Text:RArmBrTD;
new Text:TorsoBlTD;
new Text:LLegBlTD;
new Text:LLegBrTD;
new Text:LLegBlab; //&& BROKEN
new Text:RLegBlTD;
new Text:RLegBrTD;
new Text:RLegBlab; // & BROKEN
new Text:GroinBlTD;
new Text:HeadshotTD;
new Text:BFText;
Even the blindfold doesn't work anymore and I can't tell why.
Reply
#9

optimize your script
PHP код:
#define MAX_TEXTD 6 
new Text:Textdraw[MAX_TEXTD];
 
Textdraw[0] = TextDrawCreate(530 ,370 "Left Arm: Bleeding");
//// and the otherss ..........................
   
Textdraw[1] = TextDrawCreate(530 ,370 "Left Arm: Broken");
//..... etc .......
CMD:tdtest(playeridparams[])
{
     for(new 
!= MAX_TEXTD i++ )  { TextDrawShowForPlayer(playeridTextdraw[i]); }   
    return 
1;

Reply
#10

Okay, it's off topic and it's a test command it's not the actual function I use, that's completely unnecessary.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)