Author Topic: Iban Explains it All  (Read 24237 times)

Grrrr, this is why I hate syntaxes:

Code: [Select]
function Test();
{
(%i = 0)
(%j = 0)
echo("The variables are currently "@%i@" and "@%j);
}
I know this will work fine if I leave the local variables undefined, but I would like to know why this specifically will not work without returning syntax errors.

I have no idea where you got the notion to encapsulate the variable declaration in parenthesis.

%i = 0;
%j = 0;

I have no idea where you got the notion to encapsulate the variable declaration in parenthesis.

%i = 0;
%j = 0;

I tried with and without.

And also I just hit myself again

I don't know how else I can better explain a statement. It is the most fundamental of aspects in any coding language and it seems to go over your head.

I don't know how else I can better explain a statement. It is the most fundamental of aspects in any coding language and it seems to go over your head.

You have to start somewhere and apparently he starts where he doesn't know how to do statements.

I sure didn't know how to do them correctly when I started learning. :o

I wrote this guide specifically for syntax.

If you read the entire thing and certain things do not make sense, tell me why.

I wrote this guide specifically for syntax.

If you read the entire thing and certain things do not make sense, tell me why.
It's very thorough, I don't see how anyone wouldn't understand it. :o

No, I just keep forgetting the semi-colon.

It's just a moment of idiocy on my part.

So far, I have been able to understand Variables and Functions and how to execute them though console. The thing I don't get is how they all add up to make an add-on.

So far, I have been able to understand Variables and Functions and how to execute them though console. The thing I don't get is how they all add up to make an add-on.
The same way as they do in the console, but in a .cs file.

Okay. I just wrote up this test script that will demonstrate to you how to set up an add-on.

It covers:
1. Proper Add-On Setup.
2. Script Organization
3. Global Variable Declaration
4. RTB Variable Setup.
5. Function declaration.
6. ServerCmd usage.
7. MessageAll / MessageClient
8. Schedules

If you want to see anything in the script elaborated or added, tell me.

Download Test Add-on

Be sure to extract the files into a folder named "Script_Test" so you can edit and execute the scripts!

Okay. I just wrote up this test script that will demonstrate to you how to set up an add-on.

It covers:
1. Proper Add-On Setup.
2. Script Organization
3. Global Variable Declaration
4. RTB Variable Setup.
5. Function declaration.
6. ServerCmd usage.
7. MessageAll / MessageClient
8. Schedules

If you want to see anything in the script elaborated or added, tell me.

Download Test Add-on

Be sure to extract the files into a folder named "Script_Test" so you can edit and execute the scripts!

Google is being a richard dude.

Google is being a richard dude.
I forgot to make the file public.

This is fixed. My bad.


No section 3?
Whoops! Forgot to add that.

Does it make sense up to this point, though?