GetPlayerNameEx
#10

Quote:
Originally Posted by Silentzx
Посмотреть сообщение
its just a quicker way then GetPlayerName etc..... and sorry i had it wrong correct format is GetPlayerNameEx(playerid)
Is there any array storing the player name?

If so:
pawn Код:
enum enum_name
{
    money,
    another_thing,
    etc,
    name[MAX_PLAYER_NAME]
};

new pInfo[MAX_PLAYERS][enum_name]; // It could be an array that stores player's data or...

new PlayerName[MAX_PLAYERS][24]; // It could be this.

#define GetPlayerNameEx(%0) pInfo[%0][name] // This for the first example.
#define GetPlayerNameEx(%0) PlayerName[%0] // This for the second.
This would be faster than any function. All you have to do is store the name of the player in those arrays when they connect and of course, clear them after they disconnect.
Reply


Messages In This Thread
GetPlayerNameEx - by Silentzx - 13.11.2011, 22:09
Re: GetPlayerNameEx - by BlackWolf120 - 13.11.2011, 22:12
Re: GetPlayerNameEx - by park4bmx - 13.11.2011, 22:13
Re: GetPlayerNameEx - by [HiC]TheKiller - 13.11.2011, 22:18
Re: GetPlayerNameEx - by Silentzx - 13.11.2011, 22:50
Re: GetPlayerNameEx - by Miguel - 13.11.2011, 23:23
Re: GetPlayerNameEx - by RussellK - 13.11.2011, 23:30
Re: GetPlayerNameEx - by Silentzx - 13.11.2011, 23:36
Re: GetPlayerNameEx - by Chrillzen - 13.11.2011, 23:42
Re: GetPlayerNameEx - by Miguel - 15.11.2011, 13:31

Forum Jump:


Users browsing this thread: 1 Guest(s)