Storing name.
#1

Hey there.

I need to storage a name of a player somehow, and then set it back at a certain time. How to?
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)