Author Topic: How to start out?  (Read 2893 times)

No will not wtf is wrong with you.
You have to prefix the inner quotation marks with a \.
He was wrong about that but it wasn't really relevant to the point of his post so you're being a friend by pointing it out.

Because what the OP needs has nothing to do with a server.
You could have been nicer, lol. But you're right, his comment wasn't very helpful. But at least he tried, and I commend him for that. And now he will learn too, so it's not a big problem.

No will not wtf is wrong with you.
You have to prefix the inner quotation marks with a \.
Can you show me that? lol
Screw it can somebody just type the proper code and explain it to me?
« Last Edit: September 01, 2012, 08:29:09 PM by Kimon »

Can you show me that? lol
When you use quotes inside a string (variable made of words) you have to escape them so that Torque doesn't think you're ending the quote.

echo("\"Hello\" the fat Jewish kid said." NL "\"How are you?\" replied his grotesque classmate.");

Screw it can somebody just type the proper code and explain it to me?
Code: [Select]
function test()
{
messageBoxOK("Hello","Hello World!");
}

Echo was completely unnecessary because that just prints to your console, and you want a window to pop up.
« Last Edit: September 01, 2012, 08:33:17 PM by TripNick »

Code: [Select]
function test()
{
messageBoxOK("Hello","Hello World!");
}
Ok I understand that i misunderstood Echo, but can is still type test(); to make a shortcut? or do I have to add that at the end.

Ok I understand that i misunderstood Echo, but can is still type test(); to make a shortcut? or do I have to add that at the end.
"function test()" makes it a "shortcut". They're called functions in the programming world. So after putting that in you can type "test();" to make the box pop up.

"function test()" makes it a "shortcut". They're called functions in the programming world. So after putting that in you can type "test();" to make the box pop up.
Ok. Thanks for the help, I'll try it out as soon as possible, though I don't doubt it will work.
.. Ok im not quite sure what's going on, but It's still not working. I do have to go for about 15 minutes, but when I come back I'll tell you how I set up the script file, maybe that's the problem. Something like that, I guess.
« Last Edit: September 01, 2012, 08:50:17 PM by Kimon »

Ok. Thanks for the help, I'll try it out as soon as possible, though I don't doubt it will work.
.. Ok im not quite sure what's going on, but It's still not working. I do have to go for about 15 minutes, but when I come back I'll tell you how I set up the script file, maybe that's the problem. Something like that, I guess.
Probably. Works for me.

Probably. Works for me.
OK I'm back.. here's what I did:
I went to the Add-ons section in my Blockland documents, and made a new file called Script_Test.
I then Made 2 Text Documents and a server.cs file I will get to later.
Description.txt(Description, not sure if that's even necessary), NameCheck.txt(Contains the words Script_Test, again not sure if necessary). Then I made a server.cs file, which stayed a text document. I'm pretty sure after looking over things again that's where I screwed up. Is there a way to successfully change it to a .cs file?
(By the way, the server.cs file contains the code. I got this off a tutorial, was the tutorial wrong or was it what I thought?)

That sounds right. You do need description.txt by the way. Also, to make a .cs file, save it as ".cs" in notepad not .txt. So, like this:



Note: save as all files

Also delete the namecheck.txt, it is completely useless.

That sounds right. You do need description.txt by the way. Also, to make a .cs file, save it as ".cs" in notepad not .txt. So, like this:

-snip-

Note: save as all files
Erm...
You're gonna laugh...
It's still not working

But seriously I have no idea why the forget that won't work.

Also delete the namecheck.txt, it is completely useless.
People can have namechecks in their zip if they want, badspot does it so why not us?

Erm...
You're gonna laugh...
It's still not working

But seriously I have no idea why the forget that won't work.

Delete the server.cs.txt you have in there and save it again. Take a screenshot of the folder if it still doesn't work.

People can have namechecks in their zip if they want, badspot does it so why not us?
Because if you mess it up or rename your add-on it won't execute. I'd only ever release it in a stable release (Yes, I'd consider this a development release) and even then I don't because if someone wants to rename Script_SlicksCode to Script_UsefulName that's their prerogative.

Because if you mess it up or rename your add-on it won't execute.
But people DON'T mess it up because it's like 10-15 letters, and if you can't spell your own addon name right you shouldn't be making one.

And why would he rename it, he has no reason to.

Ok here are the Snapshots of everything I could get. Also I may have found the problem, but I doubt it. (Shown in snapshots)