Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Time Variable
#1
Exclamation 
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? Meow
Reply

#2
(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? Meow

um time variable isnt exactly what it is, its just a int
Reply

#3
(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? Meow

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);
        }
Reply

#4
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;
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#5
thx , we found the problem :S the variable right over didnt have ; at the end
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Information [Request] Need Time Plugin and Server Msg Plugin sylvester123 14 9,327 07-26-2013, 08:07
Last Post: sylvester123
  4D1 Extend Feeding Time Tacticalicious 1 2,574 07-02-2013, 20:59
Last Post: surtek
Tongue What are you doing in free time? Nekochan 16 8,780 05-05-2013, 08:25
Last Post: Pozzuh
  "one time we lived" Stocker 0 1,768 12-22-2012, 17:34
Last Post: Stocker
Brick [Request] iPrintLn Automatic time XxBRxX 13 7,400 12-20-2012, 08:46
Last Post: 99IRock
  [Request] !time raminr63 4 3,025 11-10-2012, 13:41
Last Post: OzonE
  [News] What time is it? Not gonna buy o'clock! SuperNovaAO 34 16,327 10-30-2012, 23:59
Last Post: SuperNovaAO
Big Grin Preview The time i spend on my pc can1907 16 7,412 10-28-2012, 20:27
Last Post: OrangePL
  Call of Duty reaches a new all-time low by launching 'Noobtube' JariZ 7 5,578 07-19-2012, 23:10
Last Post: JariZ
  [Request] Killstreak delay time Dumas 2 2,698 04-18-2012, 23:18
Last Post: Dumas

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.