- script News -1,{
OnInit:
set .Time,60; // Announce every x Minute.
setarray .News$[0], // Random Message to be Announced
"Updated News 1 every X Minute",
"Updated News 2 every X Minute",
"Updated News 3 every X Minute",
"Updated News 4 every X Minute",
"Updated News 5 every X Minute",
"Updated News 6 every X Minute",
"Updated News 7 every X Minute";
while( 1 ){
announce .News$[ rand( getarraysize( .News$ ) ) ],0;
sleep ( .Time * 60000 );
}
end;
}
I want it to announce every 10 minutes. so i change
set .Time,60; // Announce every x Minute.
into
set .Time,10; // Announce every x Minute.
and this
sleep ( .Time * 60000 );
into
sleep ( .Time * 10000 );
But its announcing everay 1 minute.
whats the problem.
I tried adding 0 to sleep ( .Time * 10000 ); to make it sleep ( .Time * 100000 );
Question
rayleigh
Im using this..
I want it to announce every 10 minutes. so i change
set .Time,60; // Announce every x Minute.
into
set .Time,10; // Announce every x Minute.
and this
sleep ( .Time * 60000 );
into
sleep ( .Time * 10000 );
But its announcing everay 1 minute.
whats the problem.
I tried adding 0 to sleep ( .Time * 10000 ); to make it sleep ( .Time * 100000 );
but its not announcing anymore.
Help anyone?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.