rafhot
Member
hi, im trying to create a kind of stopwatch to count the time my loading game are taking and also check if it happen some kind of mini freeze while it is loading
but im a little ruseted to make the script work im missing something
but im a little ruseted to make the script work im missing something
Code:
void main()
{
void s;
void value = getlocalvar("value");
void max = getlocalvar("max");
void minutes=getlocalvar("minutes"), seconds=getlocalvar("seconds"), millisec=getlocalvar(" millisec");
if(max==1){
return;
}else{}
void percent=value*100/max;
percent%=++percent;
void dot=percent%3;
if(dot==0)
s=".";
else if(dot==1)
s="..";
else
s="...";
drawstring(450,93,4,"WARNING");
drawstring(400,160,4,"THIS GAME IS NOT");
drawstring(200,200,4,"PRODUCED UNDER LICENCE OF CAPCOM AND MARVEL");
drawstring(324,340,4,"this game is a free fan game");
drawstring(386,490,0,"Loading Models..."+percent);
drawstring(510,490,0,"% Complete"+s);
//drawbox(0,260,480,2,11,rgbcolor(0,122,133),0);
//drawbox(0,260,percent*480*0.01,2,15,rgbcolor(0,233,233),0);
while(max==99)
{
//Sleep(10);
millisec++;
if(millisec == 100)
{
millisec = 0;
seconds++;
if(seconds == 60)
{
seconds = 0;
minutes++;
}
}
drawstring(450,70,0,"load timer test "+minutes +seconds +millisec);
}
}