plugins/include/sdktools_stringtables.inc
changeset 3967 ceafb87d38a7
parent 2289 44045ead61cd
     1.1 --- a/plugins/include/sdktools_stringtables.inc	Wed Jul 31 22:57:50 2013 -0400
     1.2 +++ b/plugins/include/sdktools_stringtables.inc	Thu Aug 01 09:26:34 2013 -0400
     1.3 @@ -86,7 +86,7 @@
     1.4   * Searches for the index of a given string in a string table.
     1.5   *
     1.6   * @param tableidx		A string table index.
     1.7 - * @param string		String to find.
     1.8 + * @param str		String to find.
     1.9   * @return				String index if found, INVALID_STRING_INDEX otherwise.
    1.10   * @error				Invalid string table index.
    1.11   */
    1.12 @@ -97,12 +97,12 @@
    1.13   *
    1.14   * @param tableidx		A string table index.
    1.15   * @param stringidx		A string index.
    1.16 - * @param name			Buffer to store the string value.
    1.17 + * @param str			Buffer to store the string value.
    1.18   * @param maxlength		Maximum length of string buffer.
    1.19   * @return				Number of bytes written to the buffer (UTF-8 safe).
    1.20   * @error				Invalid string table index or string index.
    1.21   */
    1.22 -native ReadStringTable(tableidx, stringIdx, String:str[], maxlength);
    1.23 +native ReadStringTable(tableidx, stringidx, String:str[], maxlength);
    1.24  
    1.25  /**
    1.26   * Returns the length of the user data associated with a given string index.
    1.27 @@ -124,7 +124,7 @@
    1.28   * @return				Number of bytes written to the buffer (UTF-8 safe).
    1.29   * @error				Invalid string table index or string index.
    1.30   */
    1.31 -native GetStringTableData(tableidx, stringIdx, String:userdata[], maxlength);
    1.32 +native GetStringTableData(tableidx, stringidx, String:userdata[], maxlength);
    1.33  
    1.34  /**
    1.35   * Sets the user data associated with a given string index.
    1.36 @@ -136,13 +136,13 @@
    1.37   * @return				Number of bytes written to the buffer (UTF-8 safe).
    1.38   * @error				Invalid string table index or string index.
    1.39   */
    1.40 -native SetStringTableData(tableidx, stringIdx, const String:userdata[], length);
    1.41 +native SetStringTableData(tableidx, stringidx, const String:userdata[], length);
    1.42  
    1.43  /**
    1.44   * Adds a string to a given string table.
    1.45   *
    1.46   * @param tableidx		A string table index.
    1.47 - * @param string		String to add.
    1.48 + * @param str		String to add.
    1.49   * @param userdata		An optional user data string.
    1.50   * @param length		Length of user data string. This should include the null terminator.
    1.51   *						If set to -1, then user data will be not be altered if the specified string