Помощ с TextDraw

Раздел за всички игри от поредицата Grand Theft Auto
Post Reply
User avatar
Shmek3r
Потребител
Потребител
Posts: 36
Joined: 18 Dec 2017, 11:52
Skype: LS
CS Nick: Shmek3r
Favorite version: CS: 1.6
Contact:

Помощ с TextDraw

Post by Shmek3r »

Здравейте, TextDraw не се показва, ето кода

В OnGameModeInit

Code: Select all

    Text[i] = TextDrawCreate(494.000000, 112.000000, "");
    TextDrawBackgroundColor(Text[i], 255);
    TextDrawFont(Text[i], 1);
    TextDrawLetterSize(Text[i], 0.3,2);
    TextDrawColor(Text[i], -1);
    TextDrawSetOutline(Text[i], 1);
    TextDrawSetProportional(Text[i], 1);

    Text1[i] = TextDrawCreate(559.000000, 112.000000, "");
    TextDrawBackgroundColor(Text1[i], 255);
    TextDrawFont(Text1[i], 1);
    TextDrawLetterSize(Text1[i], 0.3,2);
    TextDrawColor(Text1[i], -1);
    TextDrawSetOutline(Text1[i], 1);
    TextDrawSetProportional(Text1[i], 1);
OnPlayerSpawn

Code: Select all

TextDrawShowForPlayer(playerid, Text[playerid]), TextDrawShowForPlayer(playerid, Text1[playerid]);
И

Code: Select all

forward server();
public server()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new string[256];
        new nxtlevel = PlayerInfo[i][Level]+1; // As soon as its executed, It adds +1 to your score.
        new expamount = nxtlevel*levelexp;
        format(string, sizeof(string), "~w~Level: ~r~%d", PlayerInfo[i][Level]);
        TextDrawSetString(Text[i], string);
        format(string, sizeof(string), "~w~Points: ~r~%d~w~/~w~%d", PlayerInfo[i][Exp], expamount);
        TextDrawSetString(Text1[i], string);
    }
}
Post Reply

Return to “Grand Theft Auto”