SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 07/10/2009, 06:07 PM   #1
TheFailFactor
Little Clucker
 
Join Date: Aug 2009
Posts: 11
Reputation: 0
Default Storing name.

Hey there.

I need to storage a name of a player somehow, and then set it back at a certain time. How to?
TheFailFactor is offline  
Old 07/10/2009, 06:14 PM   #2
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Storing name.

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]);
Correlli is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] Storing Cars (Car Carrier) Paladin Filterscripts 46 27/02/2020 08:42 PM
Storing Camera Position Assyria Help Archive 6 06/05/2010 06:36 PM
MySQL Storing fields Daren_Jacobson Help Archive 0 07/09/2009 08:36 PM
House Storing System? Jaztek_Hodzic Help Archive 9 31/03/2009 10:53 AM


All times are GMT. The time now is 12:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.