28.12.2012, 12:08
Hi, good morning.
I'm not sure if this will work but... Try changing the callback of timer to :
i hope that helped you !
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;
}

