Skip to content

Commit

Permalink
usage of sizeof
Browse files Browse the repository at this point in the history
  • Loading branch information
omcho420 committed Aug 13, 2019
1 parent 699d44a commit e9b81e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions a_samp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ native GetActorPoolSize();
/// <remarks>This function was added in <b>SA-MP 0.3.7-R1</b> and will not work in earlier versions!</remarks>
/// <remarks>The salt is appended to the end of the password, meaning password 'foo' and salt 'bar' would form 'foobar'. </remarks>
/// <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>
native SHA256_PassHash(const password[], const salt[], ret_hash[], ret_hash_len); // SHA256 for password hashing
native SHA256_PassHash(const password[], const salt[], ret_hash[], ret_hash_len = sizeof ret_hash_len); // SHA256 for password hashing

// Server wide persistent variable system (SVars)

Expand Down Expand Up @@ -772,7 +772,7 @@ native GetSVarsUpperIndex();
/// <seealso name="GetSVarInt"/>
/// <seealso name="GetSVarFloat"/>
/// <seealso name="GetSVarString"/>
native GetSVarNameAtIndex(index, ret_varname[], ret_len);
native GetSVarNameAtIndex(index, ret_varname[], ret_len = sizeof ret_varname);

/// <summary>Gets the type (integer, float or string) of a server variable.</summary>
/// <param name="varname">The name of the server variable to get the type of</param>
Expand Down Expand Up @@ -1158,8 +1158,8 @@ native IsPlayerNPC(playerid);
native AddCharModel(baseid, newid, const dffname[], const txdname[]);
native AddSimpleModel(virtualworld, baseid, newid, const dffname[], const txdname[]);
native AddSimpleModelTimed(virtualworld, baseid, newid, const dffname[], const txdname[], timeon, timeoff);
native FindModelFileNameFromCRC(crc, retstr[], retstr_size);
native FindTextureFileNameFromCRC(crc, retstr[], retstr_size);
native FindModelFileNameFromCRC(crc, retstr[], retstr_size = sizeof retstr);
native FindTextureFileNameFromCRC(crc, retstr[], retstr_size = sizeof retstr);
native RedirectDownload(playerid, const url[]);

// Admin
Expand Down Expand Up @@ -1528,7 +1528,7 @@ native NetStats_ConnectionStatus(playerid);
/// <seealso name="NetStats_PacketLossPercent"/>
/// <seealso name="NetStats_ConnectionStatus"/>
/// <remarks>This function was added in <b>SA-MP 0.3z</b> and will not work in earlier versions!</remarks>
native NetStats_GetIpPort(playerid, ip_port[], ip_port_len);
native NetStats_GetIpPort(playerid, ip_port[], ip_port_len = sizeof ip_port);

// Menu

Expand Down

0 comments on commit e9b81e3

Please sign in to comment.