12.07.2011, 16:21
I'm kinda newbie to PAWNO and i have following problem:
It spawns players right after right time but doesn't show text draw =[ . Anyone know what might be 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]); } } }