29.11.2012, 14:27
Well, as ****** said, playerid means the ID of the player. And while it's used it functions, it means that user who gets used by that function. You must use GetPlayerName function to get player's name.
https://sampwiki.blast.hk/wiki/GetPlayerName
Example:
https://sampwiki.blast.hk/wiki/GetPlayerName
Example:
pawn Код:
new Lname[MAX_PLAYER_NAME]; //Creating a name variable.
GetPlayerName(playerid, Lname, sizeof(Lname)); //Gets the player's name with Lname variable executed in it. Sizeof lname means the length of the player name.
new str[60];
format(str, sizeof(str), "Name:%s", Lname); //We can now use the float as Lname instead of GetPlayerName.
SendClientMessage(playerid, -1, str);