Author Topic: How do i make a gui stay up  (Read 2101 times)

Read The title, like its a progress bar, gui is called tribalrpall Okay? Thanks!

You don't do the closing command...?

You don't do the closing command...?
This is all i have?
Code: [Select]
package ExecHome
{
    function GameConnection::OnClientEnterGame(%this)
    {
canvas.pushDialog(tribalrpall);
And i know since kalphiter is some scary genius that he knows how to like.. to everythings O_.
Ah..
canvas.pushDialog(GUI_Name); -open
canvas.pushDialog(GUI_Name); -close
So i guess you might do
Code: [Select]
function GameConnection::OnclientLeaveGame(%this)
     {
canvas.popDialog(tribalrpall);
     {
           ;{
activatePackage(ExecHome);
So all together...
Code: [Select]
package ExecHome
{
    function GameConnection::OnClientEnterGame(%this)
    {
canvas.pushDialog(tribalrpall);
     {
function GameConnection::OnclientLeaveGame(%this)
     {
canvas.popDialog(tribalrpall);
     {
           ;{
activatePackage(ExecHome)
Or is that messed up?

You should start by closing your brackets.

And i know since kalphiter is some scary genius that he knows how to like.. to everythings O_.
Well, first off, I wouldn't say Kalphiter is a genius. Anyone can remember torque functions, they're practically plain English. Learning how to use them is not hard either, because for most of them you can do (for example) initContainerBoxSearch(); in console and it will tell you how it's used. It won't do this for methods of a class (Like onClientEnterGame).

Second, you have to close your brackets.
Code: [Select]
function laadeedah(%client)
{
      %client.player.setWhiteout(10);
      %client.player.kill();
}

Third, canvas functions are clientside, and gameConnection methods are serverside. This code will only work for you, reguardless of if they have the GUI or not. And at that, it'll only work if you're running a non-dedicated server.
« Last Edit: April 06, 2010, 12:06:00 AM by Triple Nickels »

Light, at least learn the basics about coding and how it works before you staple together a bunch of stuff and call it a script.


Code: [Select]
package ExecHome
{
    function GameConnection::OnClientEnterGame(%this)
    {
canvas.pushDialog(tribalrpall);
     {
function GameConnection::OnclientLeaveGame(%this)
     {
canvas.popDialog(tribalrpall);
     {
           ;{
activatePackage(ExecHome)
Lol

Code: [Select]
package ExecHome
{
    function GameConnection::OnClientEnterGame(%this)
    {
canvas.pushDialog(tribalrpall);
     {
function GameConnection::OnclientLeaveGame(%this)
     {
canvas.popDialog(tribalrpall);
     {
           ;{
activatePackage(ExecHome)
Lol
All I can say is:
asdfnjasfjkn

Asdf1789jfa;lsfjl;kgnelk;ajfsdkL!!
You handicaps this is Coding help not Coding Talk
You help, or is that to much for kalphiter?

Nobody is going to help you if you act like a moron and don't put forth any real effort.

So what have you tried so far?

what does it do now?
what does it do now that you dont want?

what EXACTLY do you want to accomplish?

you said your gui is called "tribalrpall".  where did you get it? who wrote it?  have you talked to the author?  mabye they can help you.
Also - a DL link would be helpful too.

You need to be specific with your questions so people can help.  stuff like "its broken" or "it doesnt work" may be right -- but they are unhelpful.

I it. The GUI control is named tribalrpall.
I want to make it stats kinda like GUI_Metro.
Its like status and stuff.
What is broken: Every... Thing...

What is broken: Every... Thing...
I can't believe the problem isn't obvious enough to you.

Light and Day knows exactly what is wrong with this code.
http://forum.blockland.us/index.php?topic=104154.msg2048267#msg2048267
http://forum.blockland.us/index.php?topic=104152.msg2048263#msg2048263
If he didn't know, he wouldn't be boasting about how much his brother1
failed.

1 I do not think he has any brothers, he is just being stupid.