How do we make a time variable
Jariz tried
self.workout_time = 10;
but doesnt work we also tried self.workout_time = "10";
still no succes, any one can help?
(07-29-2011, 01:38)Scripts18 Wrote: [ -> ]How do we make a time variable
Jariz tried
self.workout_time = 10;
but doesnt work we also tried self.workout_time = "10";
still no succes, any one can help?
um time variable isnt exactly what it is, its just a int
(07-29-2011, 01:41)jariz Wrote: [ -> ] (07-29-2011, 01:38)Scripts18 Wrote: [ -> ]How do we make a time variable
Jariz tried
self.workout_time = 10;
but doesnt work we also tried self.workout_time = "10";
still no succes, any one can help?
um time variable isnt exactly what it is, its just a int
Its an int then any idea how to fix?
Code:
i = 0;
while(true)
{
i++;
if(i == self.workout_time) break; wait(1);
}
If you want it to increment
Code:
for(i=0;i<self.workout_time;i++)
{
wait 1;
}
or decrement
Code:
for(i=self.workout_time;i>0;i--)
{
wait 1;
}
you could also just use
Code:
wait self.workout_time;
thx , we found the problem :S the variable right over didnt have ; at the end