TextDraws problem
#1

I'm kinda newbie to PAWNO and i have following problem:
Код:
//This is just part of code.
new Text:SPAWN_Text[MAX_PLAYERS];
public SPAWN_MainInit()
{
  for (new i=0;i<MAX_PLAYERS;i++) {
	SPAWN_Text[i]=TextDrawCreate(240.0,580.0,"Respawn in 15 sec.");
	TextDrawAlignment(SPAWN_Text[i],2);
	TextDrawFont(SPAWN_Text[i],2);
	TextDrawColor(SPAWN_Text[i],COLOR_LIGHTRED);
	TextDrawHideForAll(SPAWN_Text[i]);
	}
}
public SPAWN_Timer()
{
  for(new i=0;i<MAX_PLAYERS;i++)
    {
    if ((SPAWN_Stat[i]==1)&&(IsPlayerConnected(i))) {
	TextDrawHideForPlayer(i,SPAWN_Text[i]);
	SPAWN_TimeLeft[i]=SPAWN_TimeLeft[i]-1;
        if (SPAWN_TimeLeft[i]<=0) {SPAWN_Respawn(i);return;}
	new a[64];
	format(a,sizeof(a),"Respawn in %d sec.",SPAWN_TimeLeft[i]);
	TextDrawSetString(SPAWN_Text[i],a);
	TextDrawShowForPlayer(i,SPAWN_Text[i]);
	}
    }
}
It spawns players right after right time but doesn't show text draw =[ . Anyone know what might be problem?
Reply


Messages In This Thread
TextDraws problem - by payl - 12.07.2011, 16:21
Re: TextDraws problem - by payl - 12.07.2011, 23:54
Re: TextDraws problem - by Daren_Jacobson - 12.07.2011, 23:57
Re: TextDraws problem - by payl - 13.07.2011, 16:45
Re: TextDraws problem - by payl - 13.07.2011, 21:42
Re: TextDraws problem - by Nenad - 14.07.2011, 00:01

Forum Jump:


Users browsing this thread: 1 Guest(s)