Raised This Month: $ Target: $400
 0% 

Start Scripting.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Udi
Junior Member
Join Date: Aug 2009
Old 08-08-2009 , 14:24   Start Scripting.
Reply With Quote #1

Hello im new here, and i would like to learn how to use the amxx scripting.
If there any tut or guide from A to Z ill be very happy to get it.
If any other way to learn ill be happy to get the links.
Ty vey much,
Udi.
Udi is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-08-2009 , 15:34   Re: Start Scripting.
Reply With Quote #2

http://forums.alliedmods.net/forumdisplay.php?f=83
http://forums.alliedmods.net/showthread.php?t=6512

You have to use Search next time =p
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Udi
Junior Member
Join Date: Aug 2009
Old 08-08-2009 , 15:52   Re: Start Scripting.
Reply With Quote #3

I tried
But in the first link i didnt found a good guide..
so, if ill follow thw 2nd link ill know how to make amxx plugins?
Udi is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-08-2009 , 16:34   Re: Start Scripting.
Reply With Quote #4

Quote:
Originally Posted by Udi View Post
But in the first link i didnt found a good guide..
That's because you don't know what you are looking for obviously.

Quote:
Originally Posted by Udi View Post
so, if ill follow thw 2nd link ill know how to make amxx plugins?
If you don't know how to search it's doubtful.

I would probably start here and look around there on the wiki.

It's all about trial and error.
__________________
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-08-2009 , 16:57   Re: Start Scripting.
Reply With Quote #5

http://forums.alliedmods.net/showthr...042#post560042
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Udi
Junior Member
Join Date: Aug 2009
Old 08-08-2009 , 18:10   Re: Start Scripting.
Reply With Quote #6

Ty all!
And I have a little prob with the wiki guid:
Code:
     new Arg1[24]
     new Arg2[4]
 
     //Get the command arguments from the console
     read_argv(1, Arg1, 23)
     read_argv(2, Arg2, 3)
 
     //Convert the health from a string to a number
     new Health = str_to_num(Arg2)
I didnt understood whats the mean of Arg1[24] and Arg2[3] , and why after that it became to
read_argv(1, Arg1, 23)
and

read_argv(2, Arg2, 3)
Udi is offline
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 08-08-2009 , 18:38   Re: Start Scripting.
Reply With Quote #7

arg1 and arg2 are arguments (values) entered via command, and with read_argv u read them into designated variable, read_argv(1 is first entered value, read_argv(2 is second, read_argv(0 is command itself and its never used.
__________________

Jack86 is offline
Udi
Junior Member
Join Date: Aug 2009
Old 08-08-2009 , 18:56   Re: Start Scripting.
Reply With Quote #8

ok but what is that:
new Arg1[24]
new Arg2[4]

The [24] and [4]
and why the changed to [23] [3]?
and what is the meaning of thoose arguments, and what each argument consider to?
the command is: amx_ho nick hp . if it help u

Last edited by Udi; 08-08-2009 at 19:18.
Udi is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-08-2009 , 20:02   Re: Start Scripting.
Reply With Quote #9

Quote:
Originally Posted by Jack86 View Post
read_argv(0 is command itself and its never used.
"Never say never" is a good cliche to point out here.

Quote:
Originally Posted by Udi View Post
ok but what is that:
new Arg1[24]
new Arg2[4]

The [24] and [4]
and why the changed to [23] [3]?
and what is the meaning of thoose arguments, and what each argument consider to?
the command is: amx_ho nick hp . if it help u
Arg1 and Arg2 are used as string variables. The end of a string is denoted by the null character. So, for Arg1[24], the longest string you can have is 23 characters long because the 24th one is the null character.
__________________
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-09-2009 , 04:36   Re: Start Scripting.
Reply With Quote #10

Quote:
Originally Posted by Jack86 View Post
read_argv(0 is command itself and its never used.
It could be used in the case you use the same handler for multiple functions.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 18:27.


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