27.07.2010, 22:53
sizeof()
This function is used to get the size of a variable. The size of the variable is often used in other functions.
strtok()
This will get the next word (as in, after a space) and store it in a variable. Used in a lot of commands.
cmdtext[]
Cmdtext is the text entered if there is a "/" at the beginning of the user input.
strcmp()
Strcmp stands for 'String Compare', which can be used to compare two strings to check for a difference.
new str[128]
The number in the brackets is the amount of characters which can be stored in the variable.
format
Format puts other variables into a string. Used to SendClientMessages. The last part is the variables you put into the string. %s meaning string (a word), %i meaning an integer (number). Others can be found on the wiki.
tmp
Tmp is just a variable.
strval()
Strval stands for 'String Value', which can be used to get the value of a variable (only used if a number is stored in the variable).
idx
Again, idx is just a variable, but if used with strtok or strrest, it stores the last point of extraction from the user input.
cmd[30]
Explained earlier, another variable used to store characters.
This function is used to get the size of a variable. The size of the variable is often used in other functions.
strtok()
This will get the next word (as in, after a space) and store it in a variable. Used in a lot of commands.
cmdtext[]
Cmdtext is the text entered if there is a "/" at the beginning of the user input.
strcmp()
Strcmp stands for 'String Compare', which can be used to compare two strings to check for a difference.
new str[128]
The number in the brackets is the amount of characters which can be stored in the variable.
format
Format puts other variables into a string. Used to SendClientMessages. The last part is the variables you put into the string. %s meaning string (a word), %i meaning an integer (number). Others can be found on the wiki.
tmp
Tmp is just a variable.
strval()
Strval stands for 'String Value', which can be used to get the value of a variable (only used if a number is stored in the variable).
idx
Again, idx is just a variable, but if used with strtok or strrest, it stores the last point of extraction from the user input.
cmd[30]
Explained earlier, another variable used to store characters.

