Raised This Month: $ Target: $400
 0% 

How do i begin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sgvaibhav
BANNED
Join Date: Dec 2008
Old 03-03-2009 , 02:27   How do i begin?
Reply With Quote #1

I am a regular cs player, and i am quite familiar with installing plugins and using them ...

Now i want to start scripting and make plugins but i dont know from where to start.
Which language do i need to know, and then how do i start making my own plug-ins?
sgvaibhav is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 03-03-2009 , 04:09   Re: How do i begin?
Reply With Quote #2

If you want to start scripting AMX plugins, you must learn Pawn ( language for game scripting ).
Download AMX package for your operation system.

Software:
Pawn Studio

Also you can use AMX Mod X Studio that's in AMX standart package.
GL.
TheRadiance is offline
Send a message via ICQ to TheRadiance
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-03-2009 , 06:49   Re: How do i begin?
Reply With Quote #3

I dont' think you need to "know" pawn before you start scripting. I think you should just start doing. I suggest starting from Intro to AMX Mod X Scripting.

Many of the "simple" questions can be answered on one of the pages linked to from here.

As for source code editing you can choose your favorite plain text editor. I prefer Notepad++ (DL Here), it has an a lot of features that make it great for editing scripts. On of my favorites is commenting like 20 lines all at once (as many or as little as you want).

If you choose to use Notepad++ I have just about all the amx keywords listed and I have a, imo, great syntax highlighting scheme. PM me if you want more info.


Good Luck.
__________________

Last edited by fysiks; 03-03-2009 at 06:54.
fysiks is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-03-2009 , 10:04   Re: How do i begin?
Reply With Quote #4

I agree with fysiks, you really need to understand the syntax of Pawn before you being scripting. If you go straight to plugin scripting it will be very frustrating because you are essentially trying to do 2 things at once: learn the syntax of the language and learn how to apply the script to AMX-X. If you know C you can apply much of the language syntax to pawn.

Once you get the feel for the language, you can begin looking at the source code of other plugins; with some trial and error you can figure a lot out on your own. There are plenty of people on the forums that are willing to help if you get stuck on anything.
__________________
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-03-2009 , 19:20   Re: How do i begin?
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
I agree with fysiks, you really need to understand the syntax of Pawn before you being scripting.
I think you agree with TheRadiance. I said you don't need to know pawn first. I knew nothing about the language itself. I just started coding from examples and testing things I see in other plugins. I just picked up "syntax" from doing (and failing) and redoing. I think it's less boring this way (learning syntax only = boring ).

P.S. When I compile one of my plugins and there is no error I question myself: "there's no way I could have got everything correct on my first time trying that piece of code"
__________________
fysiks is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-03-2009 , 23:38   Re: How do i begin?
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
I think you agree with TheRadiance. I said you don't need to know pawn first. I knew nothing about the language itself. I just started coding from examples and testing things I see in other plugins. I just picked up "syntax" from doing (and failing) and redoing. I think it's less boring this way (learning syntax only = boring ).

P.S. When I compile one of my plugins and there is no error I question myself: "there's no way I could have got everything correct on my first time trying that piece of code"
Oops, you are right.

I suppose you could get away with coding plugins without completely knowing pawn but you could end up with bugs and will have no idea how to sort them out. Another aspect is not knowing available operators that can save efficiency and reduce the amount of code.
__________________
Bugsy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode