I want to learn pawno scripting
#1

Hello, i want to learn pawno scripting using ZCMD, any good tutorial series?
Reply
#2

and also i wanna know the basics first..
Reply
#3

Try watching xSladeHDx on *******, watching his videos was a big help to me.
Reply
#4

thanks
Reply
#5

Well, I learned how to program by making projects. It really helps. First select something you want to make, Like a PM system or Vehicle Spawner or something like that. I don't recommend looking up series on ******* because, One. It takes a lot of time to load. Two, Reading is much faster than watching. And you get more info on reading than Watching. You really have to understand how different functions work. When you make a filterscript or two, I'm sure You'll understand Pawn. Don't just copy paste from Tutorials. Understand what each and every line of the code mean. I know you're a mapper and in mapping, You learn stuff by making something. Same goes for scripting too.

All the best and Good Luck
Reply
#6

You should start with learning the syntax of functions (function(functionparameter1,...). Then you can try to give players a message when they connect. A very important site for you will be "https://sampwiki.blast.hk/". You can find every existing function there and there are also some tutorials about the basics.
You can find tutorials in this forum too. And if that's not enough then search for good ******* channels which have a couple of subscribers.
Reply
#7

I'd say, start scripting some simple commands first, i.e a /heal - /armour - /eagle.
That's how I first started to script. Also watch tutorials on how to script easy commands like the ones stated above.
Reply
#8

by the way...pawno isn't the language, it's the compiler.
Reply
#9

Quote:
Originally Posted by MaazS
Посмотреть сообщение
by the way...pawno isn't the language, it's the compiler.



OT:

Make whatever you want. It's like painting. Go with the flow. Put whatever you come up with on your canvas, in this case, your script.

To start with CMD:

pawn Код:
#include <zcmd>

CMD:commandname ( playerid, params [] ) {
// your code here


   return true;
}
If you want (for example) to give yourself a gun, or spawn a vehicle, you could refer to the wiki for documentation. In this case:

https://sampwiki.blast.hk/wiki/GivePlayerWeapon
https://sampwiki.blast.hk/wiki/CreateVehicle

In a nutshell: you script what you want to make. I put emphasis on you. Don't ask for code. Try to do it yourself, as hard as it may seem.

If you don't know how to do it, find a script that does what you want to make and look at how the author did it, then write it yourself based on your example.
Reply
#10

Well there are lots of ways you could learn programming in pawn.

1.SA-MP Wikipedia.

Wiki wont make you a professional in pawn but it is required that you understand the things on it.It's also a good way to start off learning about pawn.

2.Editing released gamemodes/fs

Most people learned a lot from editing gamemodes and filterscripts that were released on these forums.It's not easy though, you really need to put your effort and knowledge if you want to learn anything from looking at the code others wrote.You also can't expect to learn anything from editing if you don't have basic knowledge.

3.Tutorials

These forums are full of tutorials on everything.Some are occasionally bad but some are really good.Other than these forums where are also a lot of tutorials that teach new comers pawn scripting on ******* as well.

4.Learning by yourself

Many people (including myself) have learned most of the things they know by themselves.You will have a lot of problems at first, unsolvable errors but thats why the other three methods can also help and guide you threw them.

Here are some links that show you basics of ZCMD.But always remember, never jump to harder things, if you are not familiar with strcmp, I suggest you get started with that first.If you are, then checkout these following links.

>>https://sampforum.blast.hk/showthread.php?tid=324389
>>https://sampwiki.blast.hk/wiki/Zcmd
>>https://www.youtube.com/watch?v=g5DUo42oF2g

You can feel free to checkout the many other tutorials posted here>>http://forum.sa-mp.com/forumdisplay.php?f=70
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)