Why Textdraw doenst show??
#1

asdasdasdasd
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
        Raha2[playerid] = TextDrawCreate(498.000000, 79.000000, "00000000.-");
        TextDrawBackgroundColor(Raha2[playerid], 255);
        TextDrawFont(Raha2[playerid], 1);
        TextDrawLetterSize(Raha2[playerid], 0.490000, 2.499999);
        TextDrawColor(Raha2[playerid], -1);
        TextDrawSetOutline(Raha2[playerid], 0);
        TextDrawSetProportional(Raha2[playerid], 1);
        TextDrawSetShadow(Raha2[playerid], 1);
        TextDrawUseBox(Raha2[playerid], 1);
        TextDrawBoxColor(Raha2[playerid], 255);
        TextDrawTextSize(Raha2[playerid], 610.000000, -4.000000);
}
( I didn't bother to ident it.. )

You are return 1 on the checking for money functions.. Which stops the timer

I also recommend you to use 'switch' and 'case'

pawn Код:
switch(money)
{
    case 10: // code
    case 100: // code
    case 1000: //code
}
Also as a side note, don't use [256] read ******'s optimization guide. Make that a 20 - 30 size
Reply
#3

TextDrawHideForPlayer(playerid, Raha2[playerid]); you are hiding it at the top .. so u cant see
Reply
#4

Quote:
Originally Posted by [ISS]jumbo
Посмотреть сообщение
TextDrawHideForPlayer(playerid, Raha2[playerid]); you are hiding it at the top .. so u cant see
Bottom there Show. So..
Reply
#5

yes but frist hide then the show dont get called xD or called for a sec then hide again
Reply
#6

asdasdasdasd
Reply
#7

Why do you add all them zero's when you format the string?
pawn Код:
format(string, sizeof(string), "0000000%d.-",money);
Try it this way
pawn Код:
format(string, sizeof(string), "%d.-",GetPlayerMoney(playerid));//you could also use your pCash variable i guess but i'd use this personally.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)