TextDrawCreate in cycles
#9

OKAY NOW command works
pawn Код:
#include <a_samp>
#include <zcmd>

#define MAX_TXDS 2
main() {}
new Text:textid[MAX_TXDS];

enum TextDraws_
{
    Float:pos_x,
    Float:pos_y,
    nameofTEXT[68],
    Float:letter_x,
    Float:letter_y,
    Float:textsiz_x,
    Float:textsiz_y,
    align,
    col,
    shad,
    outl,
    bckgrocol,
    font,
    propo,
    bool:select
}

new TextCreates[MAX_TXDS][TextDraws_] =
{
    { 49.599979, 158.293395, "Hlavni budova", 0.311599, 1.301333, 128.000, 15.0000, 1, -1, 0, 1, 55, 1, 1, true },//47
    { 70.599979, 200.293395, "Hlavni budova 2", 0.311599, 1.301333, 128.000, 15.0000, 1, -1, 0, 1, 55, 1, 1, true }
};//49

public OnGameModeInit()
{
    SetGameModeText("ahoj");
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

CMD:test(playerid)
{
    for(new i=0; i < MAX_TXDS;i++)
    {
        textid[i] = TextDrawCreate(TextCreates[i][pos_x], TextCreates[i][pos_y], TextCreates[i][nameofTEXT]);
        TextDrawLetterSize(textid[i], TextCreates[i][letter_x],TextCreates[i][letter_y]);
        TextDrawTextSize(textid[i], TextCreates[i][textsiz_x],TextCreates[i][textsiz_y]);
        TextDrawAlignment(textid[i], TextCreates[i][align]);
        TextDrawColor(textid[i], TextCreates[i][col]);
        TextDrawSetShadow(textid[i], TextCreates[i][shad]);
        TextDrawSetOutline(textid[i], TextCreates[i][outl]);
        TextDrawBackgroundColor(textid[i], TextCreates[i][bckgrocol]);
        TextDrawFont(textid[i], TextCreates[i][font]);
        TextDrawSetProportional(textid[i], TextCreates[i][propo]);
        TextDrawSetSelectable(textid[i], TextCreates[i][select]);
    }
    return 1;
}
Reply


Messages In This Thread
TextDrawCreate in cycles - by TheRohlikar - 20.10.2014, 17:24
Re: TextDrawCreate in cycles - by AroseKhanNiazi - 20.10.2014, 17:35
Re: TextDrawCreate in cycles - by TheRohlikar - 20.10.2014, 17:38
Re: TextDrawCreate in cycles - by TheRohlikar - 20.10.2014, 17:41
Re: TextDrawCreate in cycles - by TheRohlikar - 20.10.2014, 17:49
Re: TextDrawCreate in cycles - by AroseKhanNiazi - 20.10.2014, 17:50
Re: TextDrawCreate in cycles - by AroseKhanNiazi - 20.10.2014, 17:53
Re: TextDrawCreate in cycles - by TheRohlikar - 20.10.2014, 18:06
Re: TextDrawCreate in cycles - by AroseKhanNiazi - 20.10.2014, 18:24
Re: TextDrawCreate in cycles - by TheRohlikar - 20.10.2014, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)