Skip to content

Commit a5dcdff

Browse files
committed
revert renaming parameter 'name' to 'ip'
1 parent 0b7577e commit a5dcdff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

a_players.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ native GetPlayerState(playerid);
563563
564564
/// <summary>Get the specified player's IP address and store it in a string.</summary>
565565
/// <param name="playerid">The ID of the player to get the IP address of</param>
566-
/// <param name="ip">The string to store the player's IP address in, passed by reference</param>
566+
/// <param name="name">The string to store the player's IP address in, passed by reference</param>
567567
/// <param name="len">The maximum length of the IP address (recommended 16)</param>
568568
/// <seealso name="NetStats_GetIpPort"/>
569569
/// <seealso name="GetPlayerName"/>
@@ -574,7 +574,7 @@ native GetPlayerState(playerid);
574574
/// <seealso name="OnPlayerDisconnect"/>
575575
/// <remarks>This function does not work when used in <a href="#OnPlayerDisconnect">OnPlayerDisconnect</a> because the player is already disconnected. It will return an invalid IP (<b><c>255.255.255.255</c></b>). Save players' IPs under <a href="#OnPlayerConnect">OnPlayerConnect</a> if they need to be used under <a href="#OnPlayerDisconnect">OnPlayerDisconnect</a>. </remarks>
576576
/// <returns><b><c>1</c></b> on success and <b><c>0</c></b> on failure.</returns>
577-
native GetPlayerIp(playerid, ip[], len);
577+
native GetPlayerIp(playerid, name[], len);
578578
579579
/// <summary>Get the ping of a player. The ping measures the amount of time it takes for the server to 'ping' the client and for the client to send the message back.</summary>
580580
/// <param name="playerid">The ID of the player to get the ping of</param>

0 commit comments

Comments
 (0)