PDA

View Full Version : Gui Profiles


Chandler
04-16-2007, 08:34 PM
Having a problem while creating my own, here's what I have so far:

The inventory:

getProfiles();

if (inventoryOpen)
{
core.updateItems();
new GuiControl("inventory_Main")
{
profile = "guiMenu";
position = {temp.inventoryPosition[0], temp.inventoryPosition[1]};
extent = {temp.inventorySize[0], temp.inventorySize[1]};
}
}


He's the class that finds the profile "guiMenu", however it isn't using that as a profile.


//#CLIENTSIDE
function getProfiles()
{
echo("DRAWING");
new GuiControlProfile("guiMenu")
{
fillColor = {255, 0, 0};
fontColor = {255, 255, 255};

bitmap = "block.png";

opaque = false;
transparency = 0.5;
}
}

I am receiving the "DRAWING" in my Console Log, however, It's not using it!

Rapidwolve
04-16-2007, 09:07 PM
You called the function getProfiles(); and in that function it says echo("DRAWING"); I don't see why you shouldn't be getting that message

Chandler
04-16-2007, 09:08 PM
It's not using the profile, It's displaying the message. [Sorry, if that wasn't clear]

sam_is_me
05-14-2007, 07:03 PM
Oh i see the problem.
Once it calls the profile, it updates the items, which calls the echo command into effect, where it triggers the rc to send the "DRAWING" onto the GUI of your Q.
To fix it simply get rid of the echo command, and you should be set!
Glad I could help.

Chandler
05-14-2007, 07:22 PM
Woah, thanks!! :p

sam_is_me
05-15-2007, 03:19 AM
i try, i try
<3

Sum41Freeeeek
05-15-2007, 03:28 AM
Oh i see the problem.
Once it calls the profile, it updates the items, which calls the echo command into effect, where it triggers the rc to send the "DRAWING" onto the GUI of your Q.
To fix it simply get rid of the echo command, and you should be set!
Glad I could help.
what the hell

cbk1994
05-15-2007, 04:29 AM
What the hell are you talking about, not to sound like the person above me. Echo won't stop the script x.x

Twinny
05-15-2007, 07:42 AM
Indeed. It's not like an echo() is a return statement: what the hell?

Deadly_Killer
05-15-2007, 08:44 AM
It was a joke, it was spam, it was retarded.

Sum41Freeeeek
05-15-2007, 10:13 PM
What the hell are you talking about, not to sound like the person above me. Echo won't stop the script x.x
it's not that. I never knew Sam knew anything about gscript, lol (sam_is_me, GP from Era)

sam_is_me
05-16-2007, 07:43 PM
Its a joke, you *****s. Chandler got it, thats all I was aiming for.

TheJames
05-18-2007, 07:43 AM
For a minute I was speechless.... LOL

Kristi
05-18-2007, 03:39 PM
I found that funny ^-^

Inverness
05-18-2007, 11:58 PM
I'm sorry to say that wasn't a very good joke, well more like I didn't think it was X_X, especially since some people actually are that bad at GScript =(

xXziroXx
05-19-2007, 12:00 AM
Wow, I was actually fooled by it. Probably because I didn't bother to look at the script, I was like "Wtf, it worked? Oh well, what's for dinner?"

xAndrewx
05-22-2007, 10:54 PM
You're so illegal! Don't give up your day job.

zokemon
05-23-2007, 04:06 AM
Wow, I was actually fooled by it. Probably because I didn't bother to look at the script, I was like "Wtf, it worked? Oh well, what's for dinner?"

My situation unfolded quite the same!
Beef Stew.