Skip to content

Commit 5143d8c

Browse files
authored
Removed bool tag from SetPlayerName() and updated its description.
See this PR: openmultiplayer/open.mp#672
1 parent 60336f6 commit 5143d8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

omp_player.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,11 +1587,11 @@ native GetPlayerColor(playerid);
15871587
* </remarks>
15881588
* <returns>
15891589
* <b><c>1</c></b> The name was changed successfully.<br />
1590-
* <b><c>0</c></b> The player already has that name.<br />
1591-
* <b><c>-1</c></b> The name can not be changed (it's already in use, too long or has invalid characters).
1590+
* <b><c>0</c></b> The player is not connected, player already has that name or it's already taken by another player.<br />
1591+
* <b><c>-1</c></b> The name can not be changed (it's too long or has invalid characters).
15921592
* </returns>
15931593
*/
1594-
native bool:SetPlayerName(playerid, const name[]);
1594+
native SetPlayerName(playerid, const name[]);
15951595

15961596
/**
15971597
* <library>omp_player</library>

0 commit comments

Comments
 (0)