Storing name.
#2

pawn Code:
new PlayerName[MAX_PLAYER_NAME], PlayerString[MAX_PLAYERS][MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(PlayerString[playerid], sizeof(PlayerString), "%s", PlayerName);
This will store player's name for every player you use.

Once you have stored it, you can use it (example):
pawn Code:
SetPlayerName(playerid, PlayerString[playerid]);
Reply


Messages In This Thread
Storing name. - by TheFailFactor - 07.10.2009, 18:07
Re: Storing name. - by Correlli - 07.10.2009, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)