Old 25th July 2015, 20:13   #1
Kurogami Yamato
Junior Member
 
Join Date: Jul 2015
Posts: 1
mc.exe para de responder

Bem, sou meio novo em fazer skins, então, se possível, gostaria que alguém me respondesse algo.

Quando tento compilar meu script, o mc.exe para de responder, mas quando tento compilar um script de teste, ele compila.

code:
#include "lib/std.mi"

Function movefadeGroup(Group G, int TargetX, int TargetY, int TargetA, float Speed);
Function fadeGroup(Group G, int TargetA, float Speed);
Function fadeLayer(Layer L, int TargetA, float Speed);
Function movefadeLayer(Layer L, float TargetX, float TargetY, int targetA, float Speed);

Global Group grpMain, grpPlayer, grpEqualizer, grpPlayerpanel, grpBtncontrol, grpBtnshfrpt, grpBtnmenu, grpMinclose, grpVolume;
Global Layer lyrChara, lyrBG, lyrPanel, lyrVolumebar;

Global Timer tmrFeito;

Global Int intFeito;

System.onScriptLoaded(){
grpMain = getScriptGroup();
grpPlayer = grpMain.findObject("Player.Group");
grpEqualizer = grpMain.findObject("Equalizer.Group");

grpPlayerpanel = grpPlayer.findObject("Player.Panel.Group");
grpBtncontrol = grpPlayer.findObject("Player.Control.Button.Group");
grpBtnshfrpt = grpPlayer.findObject("Player.ShfRpt.Button.Group");
grpBtnmenu = grpPlayer.findObject("Player.Menu.Button.Group");
grpMinclose = grpPlayer.findObject("Player.MinClose.Button.Group");

grpVolume = grpPlayerpanel.findObject("Player.Slider.Volume.Group");

lyrChara = grpMain.findObject("player.chara");
lyrBG = grpMain.findObject("player.background");
lyrPanel = grpPlayerpanel.findObject("Player.Panel");
lyrVolumebar = grpVolume.findObject("VolumeBar");

grpEqualizer.hide();

tmrFeito = new Timer;
tmrFeito.setDelay(300);

fadeLayer(lyrChara, 255, 0.5);

tmrFeito.Start();
}

System.onScriptUnloading() {
delete tmrFeito;
}

tmrFeito.onTimer(){
if (intFeito==0)
{
fadeLayer(lyrPanel, 225, 0.5);
fadeLayer(lyrBG, 255, 0.5);
}

else if (intFeito==1)
{
movefadeLayer(lyrVolumebar, 238, 52, 255, 0.5);
fadeGroup(grpBtncontrol, 255, 0.5);
fadeGroup(grpBtnshfrpt, 255, 0.5);
fadeGroup(grpBtnmenu, 255, 0.5);
}

else if (intFeito==2)
{
fadeGroup(grpMinclose, 255, 0.5);
}

intFeito++;
if (intFeito == 3) tmrFeito.stop();
}

fadeGroup(Group G, int TargetA, float Speed){
G.setTargetA(TargetA);
G.setTargetSpeed(Speed);
G.gototarget();
}

fadefadeGroup(Group G, int TargetX, int TargetY, int TargetA, float Speed){
G.setTargetX(TargetX);
G.setTargetY(TargetY);
G.setTargetA(TargetA);
G.setTargetSpeed(Speed);
G.gototarget();
}

fadeLayer(Layer L, int TargetA, float Speed){
L.setTargetA(TargetA);
L.setTargetSpeed(Speed);
L.gototarget();
}

movefadeLayer(Layer L, float TargetX, float TargetY, int TargetA, float Speed){
L.setTargetX(TargetX);
L.setTargetY(TargetY);
L.setTargetA(TargetA);
L.setTargetSpeed(Speed);
L.gototarget();
}





Tem algum problema nesse código?
Kurogami Yamato is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > International Connection > International Connection

Tags
mc.exe, modern skin, para de responder, problema

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump