Textdraw
#2

Hi, good morning.
I'm not sure if this will work but... Try changing the callback of timer to :
pawn Код:
// on the top (global)
new zone[MAX_ZONE_NAME], string[30];

// the callback
public Zones_Update()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        GetPlayer2DZone(i, zone, MAX_ZONE_NAME);
        if(strcmp(zone,string,false))
        {
            format(string,sizeof(string),"%s", zone);
            TextDrawSetString(Zones[i], string);
            TextDrawShowForPlayer(i, Zones[i]);
        }
        else
        {
            TextDrawHideForPlayer(i, Zones[i]);
        }
    }

    return 1;
}
i hope that helped you !
Reply


Messages In This Thread
Textdraw +rep - by LoLeC - 28.12.2012, 11:28
Re: Textdraw - by Dragonborn - 28.12.2012, 12:08
Re : Textdraw - by DaRk_RaiN - 28.12.2012, 12:10
Re: Re : Textdraw - by Dragonborn - 28.12.2012, 12:13
Re : Re: Re : Textdraw - by DaRk_RaiN - 28.12.2012, 12:14
Re: Re : Re: Re : Textdraw - by aslan890 - 28.12.2012, 12:16
Re: Textdraw - by Dragonborn - 28.12.2012, 12:20
Re: Textdraw - by LoLeC - 28.12.2012, 13:19

Forum Jump:


Users browsing this thread: 5 Guest(s)