Raised This Month: $ Target: $400
 0% 

AMX X 1.0 Documention


  
 
 
Thread Tools Display Modes
Author Message
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 12-04-2004 , 14:30   AMX X 1.0 Documention
#1

i'm not sure where to post these "bugs"
maybe we shouldn't call them "bugs"
but...it seems i have no places else to post them
ok,here we go
i found some error in amx x 1.0 documentions

1. open your documention and turn to Commands Section
click "RCON Commands" and u will see no rcon commands part shown up
actually,there's not "amx_statscfg" which's in "Config Commands"
all this due to one line which is in commands/cmd.htm
open this file,and turn to line 395
and u will find this
Quote:
add &lt;<title> - Marks a plugin as unpauseable.
u must know why we can't see the left part of this page
it's "<title>" here,
but it should be written as "&lt;title>"or "<&gt;" or "&lt;title&gt;"

2.as what i said up,there're the similar errors below

on line 389,
Quote:
stop <file> - Stops a plugin.

pause <file> - Pauses a plugin.

enable <file> - Enables a plugin.
yes,the same mistakes

line 416

Quote:
on <variable> - Enable specific option.

off <variable> - Disable specific option.
line 421

Quote:
add <name> <variable> &lt;- Add stat variable to the list.
3.this is not similar with what's up
this is more serious ,i think
in the same page,Commands ,plz turn to "Config Commands" part
u will see this

Quote:
on - Pauses all plugins not in the list.
off - Unpauses all plugins.
actually,it should be

Quote:
off - Pauses all plugins not in the list.
on - Unpauses all plugins.

done
i found only 3 "bugs" now,but....maybe there're more there
and if i found others
i'll post it here,too


hope all these will be corrected
and thank u very much for all devs' work!!
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
LynX
Veteran Member
Join Date: Oct 2004
Old 12-06-2004 , 12:45  
#2

I found some of these things in my documentation too!
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 01-01-2005 , 11:22  
#3

another two bugs
1.installation\automatic.htm

line 15 <amxmodx-installer.exe>
should be &lt;amxmodx-installer.exe>

2.installation\manual.htm

line 60
Code:
   Edit the file <mod folder>\liblist.gam with a text-editor like Notepad.
and again at line 74
Code:
   Add a line to <mod folder>\addons\metamod\plugins.ini like so:
<mod folder> here should be &lt;mod folder>


3.amxxcfg.htm

line 100
amx_vote_answers 0.40 Ratio for a kick vote to be successful.
the popuse should be

amx_vote_answers 1 Display who votes for what option
amx_votekick_ratio 0.40 Ratio for a kick vote to be successful.
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 01-22-2005 , 09:42  
#4

another 3
1.trouble.htm

Code:
<a name="q10"></a>Q: I get "Run time error <x>!"
here there's a <x>
but my dw told me it can't be supported
maybe it should be
Code:
'Q: I get "Run time error x!" ' ??

2.primer.htm
line 685

Code:
   for (i=0; i<rows; i++)
   {
      for (j=0; j<cols; j++)
      {
         sum += array[i][j]
      }
   }
i<rows and j<cols should be i &lt; rows and j &lt; cols

3.another very very big bug,this could lead to a wrong guide
as u know ,this is found in scripting tutorial

in "Small Language Basics" Section,let's find the looping part
it wrote like this

Code:
/*A for loop has three parameters:
  for (initial; condition; increment)
  {
    //your code here
  }

  Before the first loop executes, it runs your initial condition.
  Then it begins looping your code with these steps:
  1.  Run the "increment" parameter.
  2.  Check if the condition is true.  If so, continue.  If not, stop.
  3.  Run the code.
  4.  Go to step 1.
*/
as i know ,it's not so correct,or we should say it is wrong ,yes,it is.
the correct sequence should be

Code:
1.Check if the condition is true.  If so, continue.  If not, stop.
2.Run the code.
3.Run the "increment" parameter.
4.Go to Step 1.
and because of this,the author made another mistake
let me show u
just below these words
there is an example like this

Code:
//Example of a for loop
new i
new sum
for (i=1; i<=10; i++)
{
   sum += i
}
and ,after the the explanation,we can see this

Code:
Now what would have happened if it was ++i instead? The increment would have happened before each code block execution instead of after. This means that instead of going from 1 to 10, it would have gone from 2 to 10.
as soon as i saw this,i found it's something different from c&c++
as we all know,no matter u write "i++" or "++i" here,the looping times will not be changed
it will go from 1 to 10
and then i test with small,yes,it's a real bug
it's horrible,u don't know how many people will see the tutorial and learn this
and the wrong guide will lead to a failure when scripting
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
BAILOPAN
Join Date: Jan 2004
Old 01-22-2005 , 20:49  
#5

Thank you breaddawson, I have committed all your changes into CVS.

I apologize for the scripting error, I wrote that guide over a year ago, and it's possible I either was not thinking clearly or I didn't understand how it worked then.

Anyway, I'll leave this topic open for further documentation errors.
__________________
egg
BAILOPAN is offline
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 01-23-2005 , 03:31  
#6

@BAILOPAN
thank u 4 your reply~~

and here's another one

scripts.htm

line 70

register_concmd("amx_hp", "cmd_hp", ADMIN_SLAY, "<target> <hp>")
should be

register_concmd("amx_hp", "cmd_hp", ADMIN_SLAY, "&lt;target> &lt;hp>")


line 91

amx_hp <target> <amount>
should be

amx_hp &lt;target> &lt;amount>
line 96

<target> should be &lt;target>

line 184

register_concmd("amx_hp", "cmd_hp", ADMIN_SLAY, "<target> <hp>"

should be

register_concmd("amx_hp", "cmd_hp", ADMIN_SLAY, "&lt;target> &lt;hp>"


i'm now making the chinese version of the documention
that's why i found all these
and the chinese version will be out in several days ;)[/b]
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
BAILOPAN
Join Date: Jan 2004
Old 01-23-2005 , 14:30  
#7

Awesome! I have committed these changes.

Once you finish the chinese version, I can put it in CVS and compile it for you - we will include it with the next release.
__________________
egg
BAILOPAN is offline
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 03-13-2005 , 09:26  
#8

hi,long time no see
i just spent a winter vacation without accessing internet
and now i'm back....so are the errors

here're one i found this afternoon

/scripting/advanced.htm @ line 44

it wrote:

Quote:
[*]"c" - do task on time after a map timeleft[*]"d" - do task on time before a map timeleft
but...in the amxmodx.inc it writes like this:

Quote:
"c" - do task on time after a map timeleft
"d" - do task on time before a map timelimit
@line 449

Quote:
Engine's entity_<get|set>_<type>() function
should be

Quote:
Engine's entity_&lt;get|set&gt;_&lt;type&gt;() function
sorry for my delay...but the chinese version will be finnished before April comes
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 04-05-2005 , 04:10  
#9

another one

/module_writing/porting.htm

@ line 22

Quote:
<amxxmodule.h>
should be

Quote:
&lt;amxxmodule.h>
@line 79 & line 90

Quote:
<AmxCall>
should be

Quote:
&lt;AmxCall>
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
BAILOPAN
Join Date: Jan 2004
Old 04-05-2005 , 10:42  
#10

Thanks, fixed!
__________________
egg
BAILOPAN is offline
 



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 10:28.


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