Author Topic: GUI error  (Read 1614 times)

Update: i am no longer getting the syntax error in the Server.cs, But it wont show up ingame.
Client.cs
Code: [Select]
exec("./PitroGUI.gui");Still dose not show up ingame
« Last Edit: April 01, 2010, 02:43:27 PM by pitfall »

Rename the TextCtrl object to CRP_Cash in the GUI.

Change
Code: [Select]
function clientCmdUpdatecash(%amount)
{
        GuiMLTextCtrl(Cash).setText("$: " @ %amount);
}
To
Code: [Select]
function clientCmdUpdatecash(%amount)
{
        CRP_Cash.setText("$: " @ %amount);
}

Also, it's .cs, not .sc.

Code: [Select]
commandToClient(%client,'Updatecash,%CityRPGData.getData(%client.bl_id).valueMoney);
Also, you are forgetting an apostrophe after Updatecash.

Also, you are forgetting an apostrophe after Updatecash.
Thanks that fixed it. But my GUI dose not show up in game.

Thanks that fixed it. But my GUI dose not show up in game.
My psychic abilities tell me you may be doing something wrong!

My psychic abilities tell me you may be doing something wrong!
You think?

You think?
I meant we can't help you unless you give us some information about the problem. What are you doing to try and make it work?

I meant we can't help you unless you give us some information about the problem. What are you doing to try and make it work?
I cant give information about the problem if i i dont know what the problem is.

I cant give information about the problem if i i dont know what the problem is.
Heres ways to find out problems:
  • Post the code
  • Post Your console
  • Post pictures ingame
  • Don't post it on rtb
Thee end.

Heres ways to find out problems:
  • Post the code
-did you read the original post?
  • Post Your console
-why? It says nothing about it.
  • Post pictures ingame
-Nothing shows up
  • Don't post it on rtb
-Durr
[/list]
Thee end.

Post the code the opens the gui, silly goose.

Post the code the opens the gui, silly goose.
What? Server.cs?
Code: [Select]
commandToClient(%client,'Updatecash',%CityRPGData.getData(%client.bl_id).valueMoney);

I cant give information about the problem if i i dont know what the problem is.
Thanks that fixed it. But my GUI dose not show up in game.

Where is the object "CRP_Cash"?

Where is the object "CRP_Cash"?
%CityRPGData.getData(%client.bl_id).valueMoney);

I said rename this:
Code: [Select]
   new GuiMLTextCtrl(Cash) {
      profile = "GuiMLTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "44 367";
      extent = "64 14";
      minExtent = "8 2";
      visible = "1";
      lineSpacing = "2";
      allowColorChars = "0";
      maxChars = "-1";
      text = "$";
      maxBitmapHeight = "-1";
      selectable = "1";
   };
into CRP_Cash
to become this:
Code: [Select]
   new GuiMLTextCtrl(CRP_Cash) {
      profile = "GuiMLTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "44 367";
      extent = "64 14";
      minExtent = "8 2";
      visible = "1";
      lineSpacing = "2";
      allowColorChars = "0";
      maxChars = "-1";
      text = "$";
      maxBitmapHeight = "-1";
      selectable = "1";
   };