Text Draw ! With picture !
#1

Hey guys ..

I have a problem with my money textdraw..when i log in to the server i see black box where the money is located.. like this:



http://imageshack.us/photo/my-images/265/17254502.png/

Its happend when i deleted a speedo..

I think its about this fuction:

for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
OnPlayerConnect(i);
}

Any way i did that:



new Text:Textdraw0;




Onplayerconnect:

TextDrawShowForPlayer(playerid, Textdraw0);


Onplayerdisconnect

TextDrawHideForPlayer(playerid, Textdraw0);

Onplayerspawn:

TextDrawShowForPlayer(playerid, Textdraw0);

OnGameModeInit

//Money
Textdraw0 = TextDrawCreate(498.000000,78.000000,"b");
TextDrawUseBox(Textdraw0,1);
TextDrawBoxColor(Textdraw0,0x000000ff);
TextDrawTextSize(Textdraw0,612.000000,0.000000);
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x00000000);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,2.299999);
TextDrawColor(Textdraw0,0x00000000);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);


help !!
Reply
#2

pawn Код:
//Money
Textdraw0 = TextDrawCreate(498.000000,78.000000,"b");
TextDrawTextSize(Textdraw0,612.000000,0.000000);
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x00000000);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,2.299999);
TextDrawColor(Textdraw0,0x00000000);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawUseBox(Textdraw0,1);//move here or delete
TextDrawBoxColor(Textdraw0,0x000000ff);//move here or delete
Reply
#3

Didn't worked
Reply
#4

You deleted a sprite from the hud.txd.
Reply
#5

Okay..how can i fix it ?
Reply
#6

Help......
Reply
#7

Help !
Reply
#8

Don't triple post. You can't wait?
Reply
#9

No because its important and no one help me !
Reply
#10

Every script is important, but have a patience. And those who try to help you, they are not a BOT.
Reply
#11

Okay,but I need that help fast dude so I am stress...
Reply
#12

Try to change
Код:
//Money
Textdraw0 = TextDrawCreate(498.000000,78.000000,"b");
TextDrawTextSize(Textdraw0,612.000000,0.000000);
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x00000000);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,2.299999);
TextDrawColor(Textdraw0,0x00000000);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawUseBox(Textdraw0,1);//move here or delete
TextDrawBoxColor(Textdraw0,0x000000ff);//move here or delete
to
Код:
//Money
Textdraw0 = TextDrawCreate(498.000000,78.000000,"b");
TextDrawTextSize(Textdraw0,612.000000,0.000000);
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x00000000);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,2.299999);
TextDrawColor(Textdraw0,0x00000000);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawUseBox(Textdraw0,1);//move here or delete
TextDrawBoxColor(Textdraw0,0x000000AA);//move here or delete
Reply
#13

Try to replace your hud.txd with this: http://www.fileserve.com/file/HQ6Avuj/hud.txd
It's located in ..Rockstar Games/GTA San Andreas/models.
Or try to delete the TextDraw. =/
Reply
#14

Didn't worked .....
Reply
#15

Plus, from 5:11 to 5:46,, it's not that long
see this post: https://sampforum.blast.hk/showthread.php?tid=275743
Reply
#16

Didnt help me ...
Reply
#17

If you want to get rid of the textdraw, delete it. If you want to fix the textdraw, just move down the box parameters and change the text color, simple as that:

pawn Код:
//Money
    Textdraw0 = TextDrawCreate(498.000000,78.000000,"Money");
    TextDrawTextSize(Textdraw0,612.000000,0.000000);
    TextDrawAlignment(Textdraw0,0);
    TextDrawBackgroundColor(Textdraw0,0x00000000);
    TextDrawFont(Textdraw0,3);
    TextDrawLetterSize(Textdraw0,1.000000,2.299999);
        // TEXT COLOR
    TextDrawColor(Textdraw0,0x008000FF);
        // TEXT COLOR
    TextDrawSetOutline(Textdraw0,1);
    TextDrawSetProportional(Textdraw0,1);
    TextDrawSetShadow(Textdraw0,1);
    TextDrawUseBox(Textdraw0,1);
        // BLACK BOX COLOR
    TextDrawBoxColor(Textdraw0,0x000000ff);
        // BLACK BOX COLOR
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)