Originally Posted by Eoussama
Back in 2015, I felt like making my own server since a friend of mine had one of his own, I really got inspired by him doing something so oblivious to me back in the time.
Silly me, I thought everything was done via editing few lines from the server.cfg file, but little did I know what was behind the making for servers, writing scripts was the last thing I could think of, I opened few .pwn files to get instantly pwned (see what I did there? Nvm), I had no idea what I was looking at, nor what it was for, that was my first look at the field of programming, I had this weird feeling and curiosity of wanting to know each and every single line's meaning, and how the whole thing functions.
I started watching random videos on ******* (Terrible way to start to be honest), a video led to another until I stumbled across this link that directed me to SA-MP forums, yes people,e I didn't know that such forums existed, here I found lots of written tutorials and guides for starters, I downloaded couple of filterscripts and gamemodes, edited them, combined them, added few blocks of random code that I didn't even know what it did at the time, and released them, my scripting knowledge consisted of (creating variables, using if/else statements and that's about it), I didn't know how to work with arrays, enums, loops, text formatting..... and all other basic stuff, I was just playing with very basic stuff, creating simple things like (/heal, /teleport...).
One day, I stumbled across a registration/login system (INI based), I absolutely felt like reading some rocket science related tutorials, I didn't understand a thing of what was going on in the tutorial, not a single line, that was when I realised, I had a long path in front of me. I had just finished high school back then and signed up to studying software development. It was there where I started grasping the concept and basics of scripting, C language was the door that opened countless other paths to follow,
after few weeks, I returned back to the same registration/login tutorial, and I was surprised that this time around, I could understand and follow the tutorial with easy somehow, all thanks to the stuff I picked up in class, giving the fact that pawn is a C-like language, it was almost identical.
After spending a long enough time to study C, I moved to C#, where I fell in love with Object Oriented programming language, which introduced to JavaScript which again introduced me to HTML and CSS,
With the humble sum of knowledge about programming I had, I felt like something was holding me back, that was the outdated data storing method that I used to work with, yes, saving files, which felt less secured and a lot slower, that's when I decided to learn SQL, which I didn't get too deep into, I learnt just about enough to work with in my gamemodes, I started scripting SQLite based stuff, but later move to the superior MySQL, and then decided that nothing is stopping me from learning even more SQL,
in the time of writing this, I finally started avoiding C++, like I don't know why I didn't give it a chance sooner, but man, am I loving it already,
What I want to say is, I feel like I could have picked up scripting at even earlier period, but my start wasn't that good, in fact, it was terrible on any aspect if only I did some research at the beginning, if you want to make something, learn the basics first!
If you're just starting, and want to make a gamemode right off the bat, do not search for stuff like 'How to make a vehicle system', instead, have a look on SA-MP functions, grasp a decent amount of scripting basics, and struggle making that yourself, only then you will taste the sweetness of making something by your own effort.
|