Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: MEGAMIND on Jun 22, 2018, 06:36 PM

Title: sW & sH
Post by: MEGAMIND on Jun 22, 2018, 06:36 PM
a favour i just need some fixng with my code
sW <- GUI.GetScreenSize().X;
sH <- GUI.GetScreenSize().Y;

downbar<-
{
window = null
}

function Script::ScriptLoad()
 {
downbar.window = GUIWindow(VectorScreen(0,777), VectorScreen(1400, 50), Colour(20, 20, 20, 400), "www.tdcs.tk",GUI_FLAG_TEXT_TAGS);
}
how and where to add sH to a vector and sW

ik sw is width and x-axis of screen , and sh is height y-axis of screen but where do we actually addem
Title: Re: sW & sH
Post by: MatheuS on Jun 22, 2018, 06:46 PM
downbar.window = GUIWindow(VectorScreen(sW * 0.1, sH * 0.3), VectorScreen(sW * 0.05, sH * 0.03), Colour(20, 20, 20, 400), "www.tdcs.tk",GUI_FLAG_TEXT_TAGS);
Just an example.