New scripter -
Object - 28.05.2014
Hello, I am new scripter i started to read tons of guides about 'Scripting' and so on and watched plenty of videos but when i go to 'Pawno' i just freeze and can't script anything, my question is how to script ? i read in wikipedia a lot of stuff and i read a lot of guides on the forum but i simply don't know what happens and theres only 1 way for me to script and thats copying from your guides like 'starting with your admin script' etc i simply don't know what should i do to start scripting any help please?
Edit: Is these guides are really important that's going to help me in scripting ? because i simply read half the page and i knew most of them
Not sure if its the correct section.
Re: New scripter - SupaFool - 28.05.2014
Hey there, have you been looking through sa-mp tutorials? via
http://forum.sa-mp.com/forumdisplay.php?f=70
Im sure this will help you alot.
Re: New scripter -
Object - 29.05.2014
I'll tell you what i've read so far
1.
https://sampwiki.blast.hk/wiki/Scripting_Basics
2.
https://sampforum.blast.hk/showthread.php?tid=174046
3.
https://sampforum.blast.hk/showthread.php?tid=317336
4.
https://sampforum.blast.hk/showthread.php?tid=318212
5.
https://sampforum.blast.hk/showthread.php?tid=251335
6.
https://sampforum.blast.hk/showthread.php?tid=217304
I read more but i can't just search for all
Re: New scripter -
Josh_Main - 29.05.2014
It will take time to learn and you won't understand it at first but after a while of reading pawn and getting used to it you'll eventually start to understand. In my opinion the best way to learn is looking at other scripts, and trying to figure out how it works.
Example:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 40, 1524, -2812, 5.0)) return SendClientMessage(playerid, COLOR_WHITE, "You are in range of the point");
This means if the player is in range of the point that your defining next,
Код:
The range & coordinates (player, 40, 1524, -2812, 5.0)
return the player a message in white text telling them they are in range of the point.
Код:
return SendClientMessage(playerid, COLOR_WHITE, "You are in range of the point");
Re: New scripter -
Object - 29.05.2014
Quote:
Originally Posted by Josh_Main
It will take time to learn and you won't understand it at first but after a while of reading pawn and getting used to it you'll eventually start to understand
|
So... i should remember all the function & variables and whats their uses or i should understand them, i simply tried both but i simply couldn't script any shit i only script few little stuff like 'Includes & Defines' these what i can do but the real scripting, i can't do it i am keep reading and i am not giving up but i simply don't know how to script i read plenty of guides & videos about creating commands like heal etc but all i notice is copying & pasting only.
Re: New scripter -
Josh_Main - 29.05.2014
Quote:
Originally Posted by Object
So... i should remember all the function & variables and whats their uses or i should understand them, i simply tried both but i simply couldn't script any shit i only script few little stuff like 'Includes & Defines' these what i can do but the real scripting, i can't do it i am keep reading and i am not giving up but i simply don't know how to script i read plenty of guides & videos about creating commands like heal etc but all i notice is copying & pasting only.
|
Then keep copying and pasting it until you get the hang of it man. That's exactly what I did. Copy and paste a script in pawn editor and just edit the script and change it around... Try adding little commands an move onto bigger and harder commands once you start to really understand it. I re-edited my post so you can understand it more so scroll up and read it if you need too.
Re: New scripter -
Object - 29.05.2014
Quote:
Originally Posted by Josh_Main
Then keep copying and pasting it until you get the hang of it man. That's exactly what I did. Copy and paste a script in pawn editor and just edit the script and change it around... Try adding little commands an move onto bigger and harder commands once you start to really understand it. I re-edited my post so you can understand it more so scroll up and read it if you need too.
|
Thanks you i will work with your advice and yes i scrolled up and yes i understand a lot of stuff but i simply can't do it, if i see a pawn code i understand it but when i try to do it in pawno by myself without checking his script. i get confused and don't know what to do. i understand what you wrote above but yet by myself i couldn't do it.
-Thanks for the advice

btw i started to learn scripting since 2-3 weeks and i am working my ass off just to learn
is that guide important or should i just ignore it ?
Link :
https://sampforum.blast.hk/showthread.php?tid=166680
Re: New scripter -
Josh_Main - 29.05.2014
Quote:
Originally Posted by Object
-Thanks for the advice  btw i started to learn scripting since 2-3 weeks and i am working my ass off just to learn
is that guide important or should i just ignore it ?
|
Of course it's important. When I started scripting I was the exact same as you, I would read the tutorial and then I'd switch over to pawn and as soon as I wrote something I deleted straight away because it didn't make sense and I didn't understand. Just keep learning, reading, and editing other scripts and trust me, you'll eventually get the hang of it. I still don't completely understand scripting, it's complicated.