Author Topic: Gui syntax error  (Read 1773 times)

For some reason this file below has a syntax error i client.cs

This is what it says
$remapName [##$##remapCount]="Action"

There must be a space before and after the =
also put a ; on the end on that line

There must be a space before and after the =
also put a ; on the end on that line
still has the ##$##

still has the ##$##

We need to see the rest of the code if there are any other syntax errors than the space between $remapName and [

There must be a space before and after the =

Not neccesary
« Last Edit: June 27, 2013, 03:46:17 PM by Pacnet2012³ »

There must be a space before and after the =
Nope

There may not be a space before the [


We need to see the rest of the code if there are any other syntax errors than the space between $remapName and [

Not neccesary
here they are


Now theres problem in the modernaddons.gui at create a clas

Now theres problem in the modernaddons.gui at create a clas
Object names cannot contain spaces

Now theres problem in the modernaddons.gui at create a clas
By the way, in order to make a custom MainMenuButtonsGui, you need to do this before the new GuiControl line:
MainMenuButtonsGui.delete();
I'm not 100% sure but you might need to move the GUI to a .cs file in order to do that.

Fixed the open function:
Code: [Select]
function Open_ModernAddonsPack(%toggle)
{
    if(%toggle)
{
    if(ModernAddonsPackGui.isAwake)
{
   canvas.popDialog(ModernAddonsPackGUI);
}

else
{
   canvas.pushDialog(ModernAddonsPackGui);
}
}
}

Also,
Object names cannot contain spaces

Object names cannot contain spaces
still dosnt work this is the error
New GuiWindowCtrl (##C##reateAClass)  {

Fixed it but i still cant set a key to open

Did you fix the syntax errors on these two lines already?

Code: [Select]
$remapDivison[$remapCount]="Category"
$remapName[$remapCount]="Action"



I'm not 100% sure but you might need to move the GUI to a .cs file in order to do that.

The .GUI generated by the GUI editor is just a self contained script file, for organization. You could write any code you wanted in that file and it would still compile with no errors.
« Last Edit: June 27, 2013, 05:32:33 PM by Kadon »

Did you fix the syntax errors on these two lines already?

Code: [Select]
$remapDivison[$remapCount]="Category"
$remapName[$remapCount]="Action"



The .GUI generated by the GUI editor is just a self contained script file, for organization. You could write any code you wanted in that file and it would still compile with no errors.
yes