![]() |
|
Help Time Variable - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Help Time Variable (/Thread-Help-Time-Variable.html) |
Time Variable - Scripts18 - 07-29-2011 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?
RE: Time Variable - JariZ - 07-29-2011 (07-29-2011, 01:38)Scripts18 Wrote: How do we make a time variable um time variable isnt exactly what it is, its just a int RE: Time Variable - Scripts18 - 07-29-2011 (07-29-2011, 01:41)jariz Wrote:(07-29-2011, 01:38)Scripts18 Wrote: How do we make a time variable Its an int then any idea how to fix? Code: i = 0;
while(true)
{
i++;
if(i == self.workout_time) break; wait(1);
}RE: Time Variable - AZUMIKKEL - 07-29-2011 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;RE: Time Variable - Scripts18 - 07-29-2011 thx , we found the problem :S the variable right over didnt have ; at the end |