SA-MP Forums Archive
Why Textdraw doenst show?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why Textdraw doenst show?? (/showthread.php?tid=193975)



Textdraw isn't showing. - Typhome - 28.11.2010

asdasdasdasd


Re: Why Textdraw doenst show?? - [L3th4l] - 28.11.2010

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


Re: Why Textdraw doenst show?? - iJumbo - 28.11.2010

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


Re: Why Textdraw doenst show?? - Typhome - 28.11.2010

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..


Re: Why Textdraw doenst show?? - iJumbo - 28.11.2010

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


Re: Why Textdraw doenst show?? - Typhome - 28.11.2010

asdasdasdasd


Re: Why Textdraw doenst show?? - iggy1 - 28.11.2010

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.