Quote:
Originally Posted by WASD
Why timer = 6 sec?
And this:
PHP код:
TextDrawShowForPlayer(playerid, Clock[0]);
TextDrawShowForPlayer(playerid, Clock[1]);
PHP код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
TextDrawHideForPlayer(i, Clock[0]);
TextDrawHideForPlayer(i, Clock[1]);
TextDrawShowForPlayer(i, Clock[0]);
TextDrawShowForPlayer(i, Clock[1]);
}
Change to:
PHP код:
for(new t; t != 2; t++) TextDrawShowForPlayer(playerid, Clock[t]);
PHP код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
for(new t; t != 2; t++) TextDrawHideForPlayer(i, Clock[t]),TextDrawShowForPlayer(i, Clock[t]);
}
|
You should avoid using loops for such matters (hiding/showing textdraws), they are actually slower than allotting them internally.
Want proof?
1 variable alternated 50,000 times in two different manners.