Textdraw Error...
#2

Try this.

pawn Code:
public OnGameModeInit()
{
    Textdraw0 = TextDrawCreate(3.599999, 448.753326, "usebox");
    TextDrawLetterSize(Textdraw0, 0.000000, -2.888518);
    TextDrawTextSize(Textdraw0, 637.199951, 0.000000);
    TextDrawAlignment(Textdraw0, 1);
    TextDrawColor(Textdraw0, 0);
    TextDrawUseBox(Textdraw0, true);
    TextDrawBoxColor(Textdraw0, 102);
    TextDrawSetShadow(Textdraw0, 0);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawFont(Textdraw0, 0);

    Textdraw1 = TextDrawCreate(444.799987, 402.453186, "=TROLL=STUNTING=");
    TextDrawLetterSize(Textdraw1, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw1, 1);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetShadow(Textdraw1, 0);
    TextDrawSetOutline(Textdraw1, 6);
    TextDrawBackgroundColor(Textdraw1, 51);
    TextDrawFont(Textdraw1, 1);
    TextDrawSetProportional(Textdraw1, 1);

    Textdraw2 = TextDrawCreate(257.600006, 426.346649, "WELCOME TO =TROLL=STUNTING=");
    TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw2, 1);
    TextDrawColor(Textdraw2, -65281);
    TextDrawSetShadow(Textdraw2, 0);
    TextDrawSetOutline(Textdraw2, 1);
    TextDrawBackgroundColor(Textdraw2, 255);
    TextDrawFont(Textdraw2, 2);
    TextDrawSetProportional(Textdraw2, 1);

    Textdraw3 = TextDrawCreate(613.600036, 428.586700, "/CMDS");
    TextDrawLetterSize(Textdraw3, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw3, 2);
    TextDrawColor(Textdraw3, -1);
    TextDrawSetShadow(Textdraw3, 0);
    TextDrawSetOutline(Textdraw3, 1);
    TextDrawBackgroundColor(Textdraw3, 255);
    TextDrawFont(Textdraw3, 1);
    TextDrawSetProportional(Textdraw3, 1);

    Textdraw4 = TextDrawCreate(26.400003, 427.839965, "forums.my.website.com");
    TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw4, 1);
    TextDrawColor(Textdraw4, -1);
    TextDrawSetShadow(Textdraw4, 0);
    TextDrawSetOutline(Textdraw4, 1);
    TextDrawBackgroundColor(Textdraw4, 51);
    TextDrawFont(Textdraw4, 3);
    TextDrawSetProportional(Textdraw4, 1);
    return 1;
}
Then.

pawn Code:
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid,TextDraw0);
    TextDrawShowForPlayer(playerid,TextDraw1);
    TextDrawShowForPlayer(playerid,TextDraw2);
    TextDrawShowForPlayer(playerid,TextDraw3);
    TextDrawShowForPlayer(playerid,TextDraw4);
    return 1;
}
If you haven't already, don't forget to destroy the TextDraws.

pawn Code:
public OnGameModeExit()
{
    TextDrawDestroy(TextDraw0);
    TextDrawDestroy(TextDraw1);
    TextDrawDestroy(TextDraw2);
    TextDrawDestroy(TextDraw3);
    TextDrawDestroy(TextDraw4);
    return 1;
}
Reply


Messages In This Thread
Textdraw Error... - by a.z.a.r - 19.01.2013, 14:39
Re: Textdraw Error... - by captainjohn - 19.01.2013, 14:57
Re: Textdraw Error... - by a.z.a.r - 19.01.2013, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)