Raised This Month: $ Target: $400
 0% 

Would like to learn the syntax


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KneeGrow
Junior Member
Join Date: Mar 2014
Old 03-06-2014 , 23:35   Would like to learn the syntax
Reply With Quote #1

I am more familiar with java's loops, statements, methods and stuff.
I've tried to code C before but I didn't catch on and I basically know as much about coding C now as I do then. I really don't know how to put into code as well as Java.

What I'd like to know is:
What would a basic 'shotgun giver' (for half-life) plugin look like?
or something as simple as that.
I don't know how to get the player calling the command or get the native language of the game that would give the shotgun.

Also, how do you know how to call that command ingame.
I've looked through some C before and I couldn't find what gave the code's name to be, for example, amx_giveshotgun or something like that.
KneeGrow is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 03-06-2014 , 23:45   Re: Would like to learn the syntax
Reply With Quote #2

First of all, this is not C. Is pawn.
__________________

Last edited by Neeeeeeeeeel.-; 03-07-2014 at 08:08.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-07-2014 , 02:32   Re: Would like to learn the syntax
Reply With Quote #3

There is an abundant amount of information about scripting in Pawn (it is C-like syntax). The first lesson is to learn how to search.

So, take some time looking at the basics of scripting plugins. Then, try to make something simple based on something you've seen in a tutorial, documentation, or another plugin and make sure you can get that to work. Then, make things more complicated in the direction of your end goal.

If you have a question about a specific topic, you can post your question here (with a descriptive topic title) after you have done a decent amount of searching for your issue.
__________________
fysiks is offline
Reply



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 05:57.


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