Jump to content
  • 0

TexDraw


eXtreMe96

Question

12 answers to this question

Recommended Posts

Dupa ce ai pus textdrawul in GM pui:

sus in script:

new NextTextVariable;
undeva in script:
forward NextText();
public NextText()
{
     if(NextTextVariable==1)
     {
         TextDrawSetString(nume_TD, "Text 1");
         NextTextVariable=0;
     }
     else if(NextTextVariable==0)
     {
         TextDrawSetString(nume_TD,"Text 2");
         NextTextVariable=1;
     }
}
sub OnGameModeInit:
SetTimer("NextText",5000,1);
sub OnPlayerConnect:
TextDrawShowForPlayer(playerid, nume_TD);

nume_TD - schimbi cu numele textdrawului

Prin metoda asta nu te mai complici cu zeci de textdrawuri.

TextDrawCreate

SetTimer

Link to comment
Share on other sites

Iti scriu to ce am facut

new NextTextVariable;

forward NextText();

public NextText()

{

    if(NextTextVariable==1)

    {

        TextDrawSetString(Textdraw4, "helpppppppppppp");

        NextTextVariable=0;

    }

    else if(NextTextVariable==0)

    {

        TextDrawSetString(Textdraw8,"xD");

        NextTextVariable=1;

    }

}

SetTimer("NextText",5000,1);

TextDrawShowForPlayer(playerid, Textdraw4);

TextDrawShowForPlayer(playerid, Textdraw8);

Textdraw8 = TextDrawCreate(164.0, 217.0, " ");

    TextDrawBackgroundColor(Textdraw8, 0x000FF);

    TextDrawFont(Textdraw8, 1);

    TextDrawLetterSize(Textdraw8, 0.649999, 2.000000);

    TextDrawColor(Textdraw8, 0xA2F659FF);

    TextDrawSetOutline(Textdraw8, 0);

    TextDrawSetProportional(Textdraw8, 1);

    TextDrawSetShadow(Textdraw8, 1);

Textdraw4 = TextDrawCreate(164.0, 217.0, " ");

    TextDrawBackgroundColor(Textdraw4, 0x000FF);

    TextDrawFont(Textdraw4, 1);

    TextDrawLetterSize(Textdraw4, 0.649999, 2.000000);

    TextDrawColor(Textdraw4, 0xA2F659FF);

    TextDrawSetOutline(Textdraw4, 0);

    TextDrawSetProportional(Textdraw4, 1);

    TextDrawSetShadow(Textdraw4, 1);

lol

Link to comment
Share on other sites

Iti scriu to ce am facut

new NextTextVariable;

forward NextText();

public NextText()

{

    if(NextTextVariable==1)

    {

        TextDrawSetString(Textdraw4, "helpppppppppppp");

        NextTextVariable=0;

    }

    else if(NextTextVariable==0)

    {

        TextDrawSetString(Textdraw8,"xD");

        NextTextVariable=1;

    }

}

SetTimer("NextText",5000,1);

TextDrawShowForPlayer(playerid, Textdraw4);

TextDrawShowForPlayer(playerid, Textdraw8);

Textdraw8 = TextDrawCreate(164.0, 217.0, " ");

    TextDrawBackgroundColor(Textdraw8, 0x000FF);

    TextDrawFont(Textdraw8, 1);

    TextDrawLetterSize(Textdraw8, 0.649999, 2.000000);

    TextDrawColor(Textdraw8, 0xA2F659FF);

    TextDrawSetOutline(Textdraw8, 0);

    TextDrawSetProportional(Textdraw8, 1);

    TextDrawSetShadow(Textdraw8, 1);

Textdraw4 = TextDrawCreate(164.0, 217.0, " ");

    TextDrawBackgroundColor(Textdraw4, 0x000FF);

    TextDrawFont(Textdraw4, 1);

    TextDrawLetterSize(Textdraw4, 0.649999, 2.000000);

    TextDrawColor(Textdraw4, 0xA2F659FF);

    TextDrawSetOutline(Textdraw4, 0);

    TextDrawSetProportional(Textdraw4, 1);

    TextDrawSetShadow(Textdraw4, 1);

n-ai facut bn :P

Sterge tot ce-ai facut pana acum in legatura cu aceste td-uri si pune:

Sus in script:

new NextTextVariable;
Undeva in script:
forward NextText();
public NextText()
{
     if(NextTextVariable==1)
     {
         TextDrawSetString(Textdraw4, "helpppppppppppp");
         NextTextVariable=0;
     }
     else if(NextTextVariable==0)
     {
         TextDrawSetString(Textdraw4,"xD");
         NextTextVariable=1;
     }
}
Sub OnGameModeInit
    SetTimer("NextText",5000,1);
    Textdraw4 = TextDrawCreate(164.0, 217.0, " ");
    TextDrawBackgroundColor(Textdraw4, 0x000FF);
    TextDrawFont(Textdraw4, 1);
    TextDrawLetterSize(Textdraw4, 0.649999, 2.000000);
    TextDrawColor(Textdraw4, 0xA2F659FF);
    TextDrawSetOutline(Textdraw4, 0);
    TextDrawSetProportional(Textdraw4, 1);
    TextDrawSetShadow(Textdraw4, 1);

PS: Voi va complicati cu 2 textdrawuri de acelasi fel, culoare, marime, n-are rost, mai bn doar cu unu si face treaba la 2,3,4+ :P

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.