SA-MP Scripting
#1

I'd like to began scripting on SA-MP, but I don't know what I need to know to begin. Also, I don't know what I need to begin. I consider myself alright at Python but other than that I don't think I know any other scripting language. I don't know if this is the wrong board, If it is, I'm sorry but could someone tell me the basics of scripting? Thanks in advance.
Reply
#2

I started learning scripting including PAWN from tutorials, samples and wikis.
Reply
#3

This is going to sound a bit strange but I recommend downloading an already created gamemode, http://forum.sa-mp.com/forumdisplay.php?f=71, taking a look at how it's done and trying to make changes, take a look at the wiki to research a couple of functions, then when you feel ready try and make some simple filterscripts / gamemodes of your own.
Reply
#4

I first studied a blank gamemode. After reading all the callbacks I started figuring out by myself how a gamemode or script should work.
I think that taking other gamemodes is a bad idea, because each scripter has his/her own way of organizing the code.
So I started on my own, and after a bit of hard work, the tuning menu you see on my signature was released.
Take note that even if it's based on another script, I did the coding myself. It was good practice for learning how dialogs work.

So everyone has a different way of learning. You just need to find yours, and work on it. Wiki and these forums have everything you need to know. You just need to know how to look.
Reply
#5

First read about Control Structures:
https://sampwiki.blast.hk/wiki/Control_Structures
Reply
#6

Everyone finds his own way to learn scripting it depends on your preferences, use wikis and try learning the basics and practice, only if you really care about learning something then you'll be able to learn it, if you don't take it seriously then you'll have a hard time learning to script.
Reply
#7

There are many tutorials on the internet, https://sampwiki.blast.hk/wiki/PAWN_for_Begginers
Also this is very important and helpful https://sampwiki.blast.hk/wiki/Scripting_Basics
And this is a normal tutorial, the first 2 tutorials i've sent it's more important than this https://sampwiki.blast.hk/wiki/Scripting_Basics
Also open the grandlarc.pwn gamemode, and see what's going on, check the whole gamemode etc..Or download a gamemode and try to edit it after reading these tutorials, ******* is really helpful too.
Reply
#8

Wtf bro?
Quote:

I don't know what I need to know to begin. Also, I don't know what I need to begin

Learn C/C++ than pawno!
Reply
#9

Quote:
Originally Posted by $$inSane
Посмотреть сообщение
Wtf bro?


Learn C/C++ than pawno!
Wrong. PAWNO is a big opportunity for people who have never coded before (just like like I was) to get used to coding, it's easy and also makes learning C/C++ easier.
Reply
#10

^ BOTH WRONG. PAWNO is an IDE. Pawn is the language.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)