SA-MP Forums

Go Back   SA-MP Forums > SA-MP > General

Reply
 
Thread Tools Display Modes
Old 06/03/2018, 02:59 PM   #1
Uproar
Gangsta
 
Uproar's Avatar
 
Join Date: Feb 2018
Location: India
Posts: 555
Reputation: 128
Default Why not normal word processing programs for scripting?

This is not a joke so I need serious answers.
Microsoft Word, Notepad. These are some word processing programs. Why can't we type and make the script there?
Why do we need a special and fancy program like Sublime Text or Visual Studio Code to make scripts?

I have never been into scripting so I was just curious to know
__________________
Uproar is offline   Reply With Quote
Old 06/03/2018, 03:10 PM   #2
VeryTallMidget
Big Clucker
 
VeryTallMidget's Avatar
 
Join Date: Apr 2017
Location: North LV, Emerald Isle
Posts: 105
Reputation: 14
Default Re: Why not normal word processing programs for scripting?

Yes you can use Notepad. Its your choice.
Reason to use advanced text editor programs is that they offer many usual features to handle scripts:
Open many files, use search/replace over opened documents.
Automatic highlight of selected word (mostly useful to see variables).
Highlight pair of brackets.
and so on and so on...
__________________
Click Here !

Useful stuff:
VeryTallMidget is offline   Reply With Quote
Old 06/03/2018, 03:42 PM   #3
Munchi
Little Clucker
 
Join Date: Feb 2018
Posts: 19
Reputation: 10
Default Re: Why not normal word processing programs for scripting?

notepad of course, very lite and simple software. reason you can't use notepad in the long run is because it lacks useful and easy access to programming features like compile and debugging etc. in other words what you write in the text editor must be converted into something that your computer can execute, this is also helpful in hiding your original source code, because if you open a compiled file like amx or exe with a text editor, all you will see is an alien language. i'm no expert in programming too but just sharing since i know a some of it.
__________________
sex.
Munchi is offline   Reply With Quote
Old 06/03/2018, 04:10 PM   #4
VeryTallMidget
Big Clucker
 
VeryTallMidget's Avatar
 
Join Date: Apr 2017
Location: North LV, Emerald Isle
Posts: 105
Reputation: 14
Default Re: Why not normal word processing programs for scripting?

Some .NET programs have source that can be extracted, even some coders don't know it and they leave code open without knowing it.
__________________
Click Here !

Useful stuff:
VeryTallMidget is offline   Reply With Quote
Old 06/03/2018, 04:11 PM   #5
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,478
Reputation: 525
Default Re: Why not normal word processing programs for scripting?

You could use Microsoft Office, but fuck that Clippy BS...
Sew_Sumi is offline   Reply With Quote
Old 06/03/2018, 04:13 PM   #6
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,143
Reputation: 344
Default Re: Why not normal word processing programs for scripting?

Why go lower when you can go higher that's the question. Why use notepad when you got more advanced material you can work with, the moment i tested sublime i never used pawno again.
__________________
Quote:
I'm not using the forum to release stuff anymore, if you want updates for my releases or to check my new releases check the links below >
Quote:
Originally Posted by Escobar ⚠
Life sucked me in and shat me on the cruel world.

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link


RogueDrifter is offline   Reply With Quote
Old 06/03/2018, 05:21 PM   #7
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Posts: 1,553
Reputation: 457
Default Re: Why not normal word processing programs for scripting?

The main reason is because Text is not the same as Code. It's very different in editing.

If you have this in a regular editor:

Code:
if(bla==4)
most of them will select the whole line on a double click (because it's a whole "word").

However in any decent code editor "if", "bla" and "4" should be the only expressions that get selected when double clicking (seperately).

None of the regular editors support indentation.
Pressing return after a line will not indent it, it will start at the beginning of the line.
Selecting text and press TAB will replace the text with a TAB instead of indenting the selected lines.

Some compilers will not even accept code written in NotePad if you don't turn off all formatting and encoding.

"hallo" in an editor can be encoded in the file.
Code editors mostly show the file as-is.

And so much more...
NaS is offline   Reply With Quote
Old 07/03/2018, 12:14 AM   #8
Uproar
Gangsta
 
Uproar's Avatar
 
Join Date: Feb 2018
Location: India
Posts: 555
Reputation: 128
Default Re: Why not normal word processing programs for scripting?

Oh gotcha, thanks guys
__________________
Uproar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OnPlayerKeyStateChange not processing the key pressed? Tass007 Scripting Help 24 12/10/2016 10:41 AM
Not processing the loop? FireCat Scripting Help 0 15/08/2012 11:42 AM
Id 0 Command Processing Blade_Cervetti Help Archive 9 01/01/2011 04:42 PM
Best Processing!? Marshew_DD Help Archive 7 04/11/2009 09:26 AM
Error Processing Player Kirkmaster10 Client Support 7 05/07/2009 11:33 AM


All times are GMT. The time now is 11:51 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.