Posts: 916
Threads: 65
Joined: Jun 2011
07-29-2011, 01:38
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?
Posts: 916
Threads: 65
Joined: Jun 2011
07-29-2011, 01:43
(This post was last modified: 07-29-2011, 01:50 by Scripts18.)
(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);
}
Posts: 916
Threads: 65
Joined: Jun 2011
thx , we found the problem :S the variable right over didnt have ; at the end