Whats the best way to learn how to script using PAWN?
#1

I have seen a bunch of threads about "where do I start learning how to script", some say by scripting a DM or a freeroam gamemode because it's easier than an RP gm, or whatever it is.

The thing is that I have no interest in those types of gamemodes, I have been trying to read tutorials and such but some of them aren't good enough for me to understand, I'm just a beginner and sometimes any word can mislead.
furthermore, most of the topics are old and I would like to hear some new ideas or suggestions about this topic because I have been trying for a while and I'm just failing.
(I can edit gamemodes, I just can't write a command by myself...)

Thanks in advanced!
Reply
#2

The way I learned, and I believe the majority of good programmers learned, is by just taking a gamemode that's already been made and messing around with it. Read tutorials on here, use them often and eventually certain things will become second nature. Ask for help if you encounter a bug, don't just ask for the solution, ask for why it didn't work and what changed to make it work. And, biggest tip, DO NOT QUIT! The second you quit is the second that you'll have to start from ground zero. Keep trying, do not give up.
Reply
#3

Edit scripts in general.

This has been discussed dozens of times before and repeatedly the same solution won by majority -- edit scripts.

Take any script, compile it, test it, look how it is working.
Then go back to your code, read it, understand the flow of the code, try to change few things and see the output.

Continue this way until you think you can advance to other things like managing ini files and if it seems too easy then go straight to learn MySQL and how it is working.

In the meanwhile, you can test it all and develop a demo gamemode for yourself.
Heck, just play with it, you don't even need a practical one.
Reply
#4

Thank you guys, I will try to check more tutorials now.
Reply
#5

Quote:
Originally Posted by Kaperstone
View Post
Edit scripts in general.

This has been discussed dozens of times before and repeatedly the same solution won by majority -- edit scripts.

Take any script, compile it, test it, look how it is working.
Then go back to your code, read it, understand the flow of the code, try to change few things and see the output.

Continue this way until you think you can advance to other things like managing ini files and if it seems too easy then go straight to learn MySQL and how it is working.

In the meanwhile, you can test it all and develop a demo gamemode for yourself.
Heck, just play with it, you don't even need a practical one.
^^ This... Even trying to make useless scripts that just show you information from the script/server.

No matter how daft it is, it's still something, and it serves a purpose.
Reply
#6

Still hard though, I just don't know where to start from or what to edit.
Reply
#7

Quote:
Originally Posted by Ramboi
View Post
Still hard though, I just don't know where to start from or what to edit.
Then you're probably not going to be a very established scripter. Don't script to be able to script. Do it because you want to make something. Make a /me command, a gun spawn command, a vehicle spawner command, etc.

Learn how to do stuff yourself, instead of having to be spoonfed everything. I learned how to script by writing a The Last of Us gamemode, and a gamemode where I could shoot fireballs at people.

I didn't know jack shit, but I ******d how to do things and only asked for help after I tried something but couldn't figure it out. Scripting is both learning and experimenting. Once you've got both those down, you should be fine.
Reply
#8

Quote:
Originally Posted by Ramboi
View Post
Still hard though, I just don't know where to start from or what to edit.
I ended up simply reading scripts for a few months, and looked over the tutorials, not just from here, but some random ones around the place.


And, no, not those 'how to script' ******* ones, actual reading pages of information laid out to form a tutorial.


The only thing that's hard, is getting the willpower to stay focused. A problem all coders/programmers/scripters encounter.
Reply
#9

Read this:

https://github.com/compuphase/pawn/b...uage_Guide.pdf
Reply
#10

I will tell you about my story of learning scripting.
First, i don't know about scripting the last year, i know only playing.
I downloaded a gamemode from here (Exactly i downloaded Raven Roleplay) and after i opened it and play some bunch of minutes.
After that i opened the code to see it, i don't understand all that.
So i tried to find a guide, i downloaded the official pawn guide, it helped me in some things.
So i thinked about creating a demo TDM script.
i copied something, pasted something, make a bad one, remove something ,begin from 0, until i learned the basics of a_samp (Not all)
S i begin downloading includes, testing something and ansi de suite.
And hop, i'm a good scripter, know MySQL, Textdraw, INI, and much things.
Better, download gamemodes and try by yourself until you learn
And REMEMBER : don't learn when you are bored, learn from your heart, not for others, don't think about others, think about YOURSELF
Reply


Forum Jump:


Users browsing this thread: