Author Topic: GetPlayerNameFromID  (Read 5735 times)

0 Members and 1 Guest are viewing this topic.

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
GetPlayerNameFromID
« on: September 13, 2014, 01:48:01 pm »
Hey scripters, In short, this function returns player name from the ID, what might be useful.
Code: [Select]
stock GetPlayerNameFromID(playerid)
{
new str[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "%s", pname);
return str;
}


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: GetPlayerNameFromID
« Reply #1 on: September 13, 2014, 02:25:54 pm »
Start to script for 0.4 ...

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline ysc123

  • Street Thug
  • *
  • Posts: 29
    • View Profile
Re: GetPlayerNameFromID
« Reply #2 on: September 13, 2014, 06:32:20 pm »
in Squirrel

function GetPlayerNameFromID(id)
{
   return FindPlayer(id).Name
}

Offline Honey.

  • Made Man
  • ***
  • Posts: 111
    • View Profile
Re: GetPlayerNameFromID
« Reply #3 on: September 14, 2014, 06:44:11 am »

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: GetPlayerNameFromID
« Reply #4 on: September 14, 2014, 01:03:27 pm »
Start to script for 0.4 ...

I'm not sure if I'm blind but...where do I download 0.4 client and the server?


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline Honey.

  • Made Man
  • ***
  • Posts: 111
    • View Profile
Re: GetPlayerNameFromID
« Reply #5 on: September 14, 2014, 03:21:33 pm »

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: GetPlayerNameFromID
« Reply #6 on: September 14, 2014, 03:24:13 pm »


-Funniest quotes-

Quote from: asad3man
i cant able to understand