Where to start exactly
#1

Hey guyz
I want to script pawn language but all the tutorials and on wiki does not help AT ALL. I literally know nothing about scripting at all. So I realised that you must know some type of scripting if you want to script pawn language. I decided to start with HTML and CSS, then move to Java and carry on with others before I get to Pawn. Is this recommended? What do you guys recommend? Where did you start to learn scripting before you understood pawn language.

All replies are appreciated
Reply
#2

PAWN was my first language to learn, as I was only 13 years old when I started.

I recommend checking the stickies and the tutorials section here in the Scripting Help forum, after reading through the PAWN Language Guide: www.compuphase.com/pawn/Pawn_Language_Guide.pdf
Reply
#3

No, I don't recomment it. HTML and CSS; Java are totally different languages and it's waste of time. I already knew HTML, but when I started using Pawn language I saw a lot of differences. Everything you need is to read all the documentations from "Main Page - SA:MP Wiki" and especially at the scripting Section. First of all, start reading the Scripting Basics, because they will need them and the rest will come day by day.
Reply
#4

Quote:
Originally Posted by KyleJulez
View Post
Hey guyz
I want to script pawn language but all the tutorials and on wiki does not help AT ALL. I literally know nothing about scripting at all. So I realised that you must know some type of scripting if you want to script pawn language. I decided to start with HTML and CSS, then move to Java and carry on with others before I get to Pawn. Is this recommended? What do you guys recommend? Where did you start to learn scripting before you understood pawn language.

All replies are appreciated
The actual purpose of a language is to DO SOMETHING with it. You want to learn a language for the sake of learning the language? Seems that your bitterly confused. Not saying it's a bad thing, but if you have no prior experience then it just makes the challenge even more difficult. That's like going to med school and being a plumber! ...Years wasted for nothing.

You want to learn PAWN to do something that you can actually do in the language, same with HTML and any other language.
Reply
#5

Hey dude. I was in your shoes approximately 2-3 weeks ago. The SA-MP wiki is the best ever and the forum guys are superb too, I got overwhelming support I ever needed. I had a bit of something to go on, because I knew about 5% of C++ language from school. Just declaring integers and all that. Now look below me, I got three Filterscripts (am not bragging, because they aren't too much, just an example).

Most of the functions in the scripting are Self explanatory. For example, GetPlayerName means you get a player's name. OnFilterScriptInIt means On loading the filterscript, what do you need to do IN IT? And so on.

If you want to start, read up the basics page at the samp wiki, I started from there, read about 5-6 pages, then started on my own and I think I know good scripting now but there's a lot to go on, still. If you haven't got the patience to read, you can't script, because scripting requires patience too.

Practice makes a man perfect! Don't even try to download super hard gamemodes that you won't understand, that will just demoralise you.
Get the server package, try checking out the basic filterscripts given in it, edit the gamemodes and so on.

Hope this helps,
Cheers.
Reply
#6

Thanx for all the responses guys

The thing is all that pawno tutorials and things looks complicated. For example the scripting basics are confusing and i cant understand it. Includes, calls, funions and the rest are not explained simple enough to me. I dont quite understand it. Isnt there any simpler definitions of these things? And I also dont see how its related to the game, they dont explain how its related. When i ******d html and watched ******* videos its so simple and they explain what the commands and things are and how it relates to a webpage but when they talk about pawn all i see them do is type a whole bunch of things i dont know and they expect you to understand them. Like for example..why do you type #include <a_samp>? what is that and why do you type it. Those things are not clearly explained. I really am trying to ;earn it but I just dont get it. It feels as if those tutorials are for those that already know the basics of pawno and not for those like me that actually know completely nothing about the language
Reply
#7

From SA:MP Wiki:

Include
pawn Code:
#include <a_samp>
This basically loads the code from pawno/includes/a_samp.inc into your script, so everything it has you can use. One of the things it has is:
pawn Code:
#include <core>
#include <float>
#include <string>
#include <file>
#include <time>
#include <datagram>
#include <a_players>
#include <a_vehicles>
#include <a_objects>
#include <a_sampdb>
This includes all the other files in that directory so by adding that one line you have access to all the functions in SA:MP (more on functions later).


// --


Isn't that clear enough to understand it?
Reply
#8

Quote:
Originally Posted by Rajat_Pawar
View Post
Most of the functions in the scripting are Self explanatory. For example, GetPlayerName means you get a player's name. OnFilterScriptInIt means On loading the filterscript, what do you need to do IN IT? And so on.
HAHAHA not sure if this was a serious comment or not but it made me giggle, thanks.
Reply
#9

Quote:
Originally Posted by Potassium
View Post
HAHAHA not sure if this was a serious comment or not but it made me giggle, thanks.
It was serious, but if that was a fail, lol.
It's 'This callback is called when a filterscript is loaded, it is only called inside the filterscript which is starting.'
I don't know what made you giggle (fail description or the fail grammar) but, ok, lol, glad I made someone laugh.
Reply
#10

Quote:
Originally Posted by Rajat_Pawar
View Post
It was serious, but if that was a fail, lol.
It's 'This callback is called when a filterscript is loaded, it is only called inside the filterscript which is starting.'
I don't know what made you giggle (fail description or the fail grammar) but, ok, lol, glad I made someone laugh.
Init = initialization
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)