1.
http://forums.alliedmods.net/showthread.php?t=140103
2.
http://forums.alliedmods.net/showthread.php?t=90507
3. lvl and cid are parameters that contain information from the function registering.
They should be used in combination with cmd_acess() found in amxmisc.inc.
level is used to determine if you have access to the command. A better way than just using "flags & ADMIN_FLAG".
cid stands for command id, it's used in various functions that are rarely used. In cmd_acess it's used to retreive the fourth parameter used when registering the command. If the number of arguments fewer than defined in cmd_access() it will display this string as a guide on how the command should be used.
4. Check out the .inc-files included in the default AMXX package. They supply a lot of information. There was an online function but it's broken as it doesn't show all functions.
5. Personal preference. sz basically stands for "string zero" which could be translated into "string of characters terminated by null(zero)". This is how strings in pawn works. Functions loop strings until it hits 0(null). It doesn't mean you have to use sz as a prefix.
In pawn there are only 3 types of variables. Integer, float and boolean.
Integers hold one integer value (I don't know the range of it).
Float holds a decimal number.
Boolean holds only true or false.
An array is basically just a row of any of the 3 above.
Strings are integer arrays with the exception of leaving the last cell unused for the null-termination.
In other programming languages there are a lot more variable types to keep track of. Using these prefixes will make it easier to look into larger functions without going back and forth to check what the variable was initialized as.
6. These are placeholders to be replaced with a number/string or float.
%d or %i is used to display an integer.
%f is used to display a float.
%s is used to display a string.
%c is used to display a character.
They are used like this:
Code:
server_print("Random number: %d". random_num(1, 9))
This will replace %d with whatever is returned by the function random_num().
When printing floats you will get 6 decimals. You can limit this using %.2f for example. This will only print 2 decimals. You can limit strings in the same way.
7. I'm not following. What do you mean by function flags?
8. They look like flags used to filter a player menu. I can't find them in my includes, might be specific to a certain plugin.
9. SteamID.
There is better information to be found on most subjects here. Search and you will find.
__________________