Question about GetPlayerName
#1

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?
Reply
#2

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
Reply
#3

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

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

i.e. is it case-sensitive?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)