Help me learn PAWN
#1

https://www.compuphase.com/pawn/pawn.htm

^Not very helpful, and a gigantic documentation on PAWN will probably take years.

My question is simple, where to start from? and don't bother to reply if you've only the wiki to suggest...Would you throw a book to a kid and tell him to read and understand it on your own?

Continuing on the question, I seriously need someone to properly explain me from where to initiate, one more thing, I've already read C language in case it can help me in any way possible.


EDIT: This beautifully explained tutorial by Alonzo is phenomenal, but where should I move on after that? obviously, it doesn't cover everything.
Thank you
Reply
#2

I suggest to open a gamemode and read it to understand how that works. In case you want experiment by yourself, open a blank gamemode and write little by little functions, commands, systems ...
You can combine both. A lot of us are autodidact but we still here to help you if you need it.
Reply
#3

Also don't be afraid to break things while you are still learning. Looking into already existing gamemodes is a good start (but watch out, some of the most popular gamemodes are ancient and not kept to high code standards, just made well enough to work). Remember we are here to help, but only if you show some effort, i.e code you've written doesn't work as it should and you want to know why.
Reply
#4

https://sampwiki.blast.hk/wiki/Category:..._Documentation
Reply
#5

Appreciate the replies, Dayrion and Misiur. Do you have any basic game modes suggestions? in addition to that, I've only learned from Alonzo Torres' PAWN for Beginners Extended it doesn't cover up the pawn in whole, where can I learn dialogs, enumerations and many other in-depth things?
Reply
#6

I'll leave gamemode recommendations to other people, I'm not up to date with other people releases.

https://sampforum.blast.hk/showthread.php?tid=318307 - best infodump about enumerators.

Dialogs are no magic, and the dry info you get from wiki is good enough way to learn about them:
Definining and showing dialogs - https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Dialog styles with screens - https://sampwiki.blast.hk/wiki/Dialog_Styles
Handling dialog responses - https://sampwiki.blast.hk/wiki/OnDialogResponse
Bonus - colour embedding - https://sampwiki.blast.hk/wiki/Colour_Embedding
Reply
#7

Thank you so much for taking your time to help me out!
Have a nice day

Edit: I'd appreciate if anyone can hook me up with a high-standard gamemode code as prescribed. ty
Reply
#8

The one here is a pretty decent one also is as close as it can be towards LS-RP, which was once an awesome server.(administration problems like for more than last 1 year lol) You can look in to this really.

I learned samp scripting from looking in to these kind of game modes, asking here a lot and by editing small code snippets on forums to my usage too. Thanks to everybody here thats helpful. Then I said I think Im ready to go lol. And now almost to complete my first big roleplay script.

As others said, dont be afraid to break stuff as you go. Just try to look deeper in your code when you hit a wall, and never ever give up or never ever start off with something thats huge(It will get you bored just in days like i did at first).
Reply
#9

truly obliged to read your experience.
Cheers, mate
Reply
#10

Don't underestimate the usefulness of the pawn handbook. (which now seems to have disappeared. It'll be around the place. You won't use it all the time, but it's all the more reading material.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)