Skip to content

Commit 6124e82

Browse files
authored
Merge pull request #23 from Daniel-Cortez/sizeof-patch
Minor sizeof-related fixes
2 parents eb04134 + afee229 commit 6124e82

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

a_players.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ native GetPlayerState(playerid);
600600

601601
/// <summary>Get the specified player's IP address and store it in a string.</summary>
602602
/// <param name="playerid">The ID of the player to get the IP address of</param>
603-
/// <param name="name">The string to store the player's IP address in, passed by reference</param>
603+
/// <param name="ip">An array into which to store the player's IP address, passed by reference</param>
604604
/// <param name="len">The maximum length of the IP address (recommended 16)</param>
605605
/// <seealso name="NetStats_GetIpPort"/>
606606
/// <seealso name="GetPlayerName"/>
@@ -1602,7 +1602,7 @@ native GetPVarsUpperIndex(playerid);
16021602
/// <param name="playerid">The ID of the player whose player variable to get the name of</param>
16031603
/// <param name="index">The index of the player's pVar</param>
16041604
/// <param name="ret_varname">A string to store the pVar's name in, passed by reference</param>
1605-
/// <param name="ret_len">The max length of the returned string, use sizeof()</param>
1605+
/// <param name="ret_len">The max length of the returned string</param>
16061606
/// <seealso name="GetPVarType"/>
16071607
/// <seealso name="GetPVarInt"/>
16081608
/// <seealso name="GetPVarFloat"/>

a_samp.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ native GetActorPoolSize();
653653
/// <remarks>This function was added in <b>SA-MP 0.3.7-R1</b> and will not work in earlier versions!</remarks>
654654
/// <remarks>The salt is appended to the end of the password, meaning password 'foo' and salt 'bar' would form 'foobar'. </remarks>
655655
/// <remarks>The salt should be random, unique for each player and at least as long as the hashed password. It is to be stored alongside the actual hash in the player's account. </remarks>
656-
native SHA256_PassHash(const password[], const salt[], ret_hash[], ret_hash_len = sizeof ret_hash_len); // SHA256 for password hashing
656+
native SHA256_PassHash(const password[], const salt[], ret_hash[], ret_hash_len = sizeof ret_hash); // SHA256 for password hashing
657657

658658
// Server wide persistent variable system (SVars)
659659

@@ -767,7 +767,7 @@ native GetSVarsUpperIndex();
767767
/// <summary>Retrieve the name of a sVar via the index.</summary>
768768
/// <param name="index">The index of the sVar</param>
769769
/// <param name="ret_varname">A string to store the sVar's name in, passed by reference</param>
770-
/// <param name="ret_len">The max length of the returned string, use sizeof()</param>
770+
/// <param name="ret_len">The max length of the returned string</param>
771771
/// <seealso name="GetSVarType"/>
772772
/// <seealso name="GetSVarInt"/>
773773
/// <seealso name="GetSVarFloat"/>
@@ -1012,7 +1012,7 @@ native SetWorldTime(hour);
10121012
/// <summary>Get the name of a weapon.</summary>
10131013
/// <param name="weaponid">The ID of the weapon to get the name of</param>
10141014
/// <param name="weapon">An array to store the weapon's name in, passed by reference</param>
1015-
/// <param name="len">The maximum length of the weapon name to store. Should be <c>sizeof(name)</c></param>
1015+
/// <param name="len">The maximum length of the weapon name to store.</param>
10161016
/// <seealso name="GetPlayerWeapon"/>
10171017
/// <seealso name="AllowInteriorWeapons"/>
10181018
/// <seealso name="GivePlayerWeapon"/>

0 commit comments

Comments
 (0)