Keep repeating
#1

how to make a function keep repeating without using timer : example :

Код:
SetPlayerHealth(playerid,0.0);
how to make that function keep repeating forever??
Reply
#2

What are you trying to do?
Reply
#3

like to have health 0,0 all the time or what ??
Reply
#4

Quote:
Originally Posted by ¤Adas¤
What are you trying to do?
as i said keep repeating this function :
Код:
SetPlayerHealth(playerid,0.0);
so its like :
Код:
SetPlayerHealth(playerid,0.0);
Код:
SetPlayerHealth(playerid,0.0);
Код:
SetPlayerHealth(playerid,0.0);
Код:
SetPlayerHealth(playerid,0.0);
Код:
SetPlayerHealth(playerid,0.0);
Код:
SetPlayerHealth(playerid,0.0);
Код:
SetPlayerHealth(playerid,0.0);
etc..
Reply
#5

Only timer.
Reply
#6

Quote:
Originally Posted by ¤Adas¤
Only timer.
Reply
#7

there must be another way , like if i wanna do :

/torture (id)
i cant use timer on the "id" only with the playerid ??
Reply
#8

AAA TORTURE!!!

Use: SetTimerEx("Kill_N_Torture", 500, true, "i", victim_id);

or st like that
Reply
#9

pawn Код:
while (1) SetPlayerHealth(playerid,0.0);
or
pawn Код:
for ( ; ; ) SetPlayerHealth(playerid,0.0);
or
pawn Код:
do {SetPlayerHealth(playerid,0.0);} while (1)
or
pawn Код:
function(playerid)
{
  SetPlayerHealth(playerid,0.0);
  function(playerid);
}
...
Reply
#10

It is bad, because it will freeze the server!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)