15.11.2011, 13:31
Quote:
its just a quicker way then GetPlayerName etc..... and sorry i had it wrong correct format is GetPlayerNameEx(playerid)
|
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.