Problem with textdraws
#1

Hell0!

I've got a little problem with my 2 textdraws. The thing is, that 1 of the textdraws spawns into the other one, but it should appear in the other corner. The location draw appears into the food draw(InfoBar(.

Anyway, here's the code ( gnore the gasdraw, I was too lazy to remove that. ):
pawn Код:
for(new td; td < sizeof(ToiduDraw); td++)
    {
        InfoBar[td] = TextDrawCreate(498.000000,99.000000, "Food:");
        TextDrawBackgroundColor(InfoBar[td],0x00000033);
        TextDrawFont(InfoBar[td],1);
        TextDrawLetterSize(InfoBar[td],0.400000,1.600000);
        TextDrawColor(InfoBar[td],0x008B00A6);
        TextDrawSetOutline(InfoBar[td],1);
        TextDrawSetProportional(InfoBar[td],1);
        TextDrawSetShadow(InfoBar[td],1);
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        FuelDraw[i] = TextDrawCreate(498.000000,114.000000,"Gas:");
        TextDrawAlignment(FuelDraw[i],0);
        TextDrawBackgroundColor(FuelDraw[i],0x00000033);
        TextDrawFont(FuelDraw[i],1);
        TextDrawLetterSize(FuelDraw[i],0.400000,1.600000);
        TextDrawColor(FuelDraw[i],0x008B00A6);
        TextDrawSetOutline(FuelDraw[i],1);
        TextDrawSetProportional(FuelDraw[i],1);
        TextDrawSetShadow(FuelDraw[i],1);
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        LocationDraw[i] = TextDrawCreate(8.000000,426.000000,"GPS is looking for ur position...");
      //  TextDrawAlignment(LocationDraw[i],0);
        TextDrawBackgroundColor(LocationDraw[i],0x00000033);
        TextDrawFont(LocationDraw[i],1);
        TextDrawLetterSize(LocationDraw[i],0.400000,1.600000);
        TextDrawColor(LocationDraw[i],0x008B00A6);
        TextDrawSetOutline(LocationDraw[i],1);
        TextDrawSetProportional(LocationDraw[i],1);
        TextDrawSetShadow(LocationDraw[i],1);
    }
Reply
#2

Anyone?
Reply
#3

this happens when the textdraw is been to big, like the limit of the text is 10 but u write 20 instead, it will hide the textdraw or u will be able to see it at a corner..
Reply
#4

Change The X and Y (red color)

Код:
InfoBar[td] = TextDrawCreate(498.000000,99.000000, "Food:");
Reply
#5

Nvm. Got it fixed already.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)