19.12.2010, 22:15
(
Последний раз редактировалось Lynn; 20.12.2010 в 21:04.
)
Well, I have 10 timers,
But the first three load fine,
But the adittional 7 will not. It is the exact same code in every one, except for the Value of my health goes from,
SetPlayerHealth(playerid, 10);
to
SetPlayerHealth(playerid, 20); and so on. On 10 it's 100.
But for some reason, after Timer 3, it will not load them rest.
I am probably using a outdated method for timers,
SetTimer("HealthTime", 500, 1);
I have all the correct forwards, and everything complies fine, but In-Game it just refuses to work.
If you have a simpler method for this, please let me know. As I don't use timers but once in a while.
-Thank you.
But the first three load fine,
But the adittional 7 will not. It is the exact same code in every one, except for the Value of my health goes from,
SetPlayerHealth(playerid, 10);
to
SetPlayerHealth(playerid, 20); and so on. On 10 it's 100.
But for some reason, after Timer 3, it will not load them rest.
I am probably using a outdated method for timers,
SetTimer("HealthTime", 500, 1);
I have all the correct forwards, and everything complies fine, but In-Game it just refuses to work.
If you have a simpler method for this, please let me know. As I don't use timers but once in a while.
-Thank you.
pawn Код:
public HealthTime()
{
for(new i; i< MAX_PLAYERS; i++)
{
GameTextForPlayer(i, " ~r~Healing....", 10000, 6);
SetPlayerHealth(i, 10);
GiveHeath = SetTimer("HealthTime2", 500, false);
}
}