What's Wrong
#1

Whats wrong with this code its compiles fine and when i go to the area which i have done it flash the textdraw and goes away until i move again.

pawn Код:
#include <a_samp>
#include <streamer>

#define MAX_ZONES 1

new Text:Streets[MAX_PLAYERS];

new zones[MAX_ZONES];
new Float:zones_points_0[] = {
    -304.0,-139.0,-268.0,-152.0,-220.0,-165.0,-162.0,-177.0,-120.0,-186.0,-87.0,-191.0,-41.0,-198.0,16.0,-203.0,120.0,-206.0,120.0,-216.0,
    17.0,-213.0,-43.0,-208.0,-131.0,-194.0,-166.0,-188.0,-219.0,-176.0,-266.0,-164.0,-300.0,-157.0,-304.0,-139.0
};
new zones_text[MAX_ZONES][64] = {
    "Street Names"
};


public OnFilterScriptInit() {

    zones[0] = CreateDynamicPolygon(zones_points_0);

    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerEnterDynamicArea(playerid, areaid)
{
    for (new zone=0; zone<MAX_ZONES; zone++)
    {
        if (areaid==zones[zone])
        {
            TextDrawSetString(Streets[playerid], zones_text[zone]);
        }
    }
    return 1;
}

stock CreatePlayerTextDraws(playerid)
{
    Streets[playerid] = TextDrawCreate(36.000000, 328.000000, " ");
    TextDrawBackgroundColor(Streets[playerid], 255);
    TextDrawFont(Streets[playerid], 1);
    TextDrawLetterSize(Streets[playerid], 0.200000, 1.100000);
    TextDrawColor(Streets[playerid], -1);
    TextDrawSetOutline(Streets[playerid], 0);
    TextDrawSetProportional(Streets[playerid], 1);
    TextDrawSetShadow(Streets[playerid], 1);

    return 1;
}
Reply
#2

Where are you showing the textdraw to the player?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)