SA-MP Forums Archive
Question about GetPlayerName - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about GetPlayerName (/showthread.php?tid=551743)



Question about GetPlayerName - bobsona - 20.12.2014

Hello,
I want to ask something about GetPlayerName.
Is it case-sensitive?
Nowhere in the documentation I can find information on this question.
MTA's wiki for the same function says that it's case-insensitive.
Any ideas about SAMP?


Re: Question about GetPlayerName - Lynn - 20.12.2014

pawn Код:
public OnPlayerConnect(playerid)
{
    // Get the name of the player that connected and display a join message to other players
 
    new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
 
    format(string, sizeof(string), "%s has joined the server.", name);
    SendClientMessageToAll(0xC4C4C4FF, string);
 
    return 1;
}
* CREDITS TO SAMP WIKI *
More info at:
https://sampwiki.blast.hk/wiki/GetPlayerName


Re: Question about GetPlayerName - bobsona - 20.12.2014

I didn't mean this.
Read more carefully what I wrote.


Re: Question about GetPlayerName - cessil - 21.12.2014

it gets the players name in the case that they used to spell it


Re: Question about GetPlayerName - bobsona - 21.12.2014

i.e. is it case-sensitive?