What is the best way to save playername - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What is the best way to save playername (
/showthread.php?tid=336129)
What is the best way to save playername -
Mr.Fames - 21.04.2012
Hello all, what is the best/effeciant way to save a playername is this good ?
pawn Код:
stock PlayerName(playerid)
{
new pName[25];
GetPlayerName(playerid, pName, sizeof(pName));
return pName;
}
or are there any other methods that are better
Re: What is the best way to save playername -
Twisted_Insane - 21.04.2012
This what you have is a "stock", it doesn't SAVE the playername, it creates a function to receive it's info.
Re: What is the best way to save playername -
[MG]Dimi - 21.04.2012
one you posted is the best if you would use Player's name a lot of times in file, but it's not the fastest.
Re : What is the best way to save playername -
Tomer!.$ - 21.04.2012
I was also wondering what's faster, create a Name variable everytime you use player's name or use a stock returning player name?
Re: What is the best way to save playername -
Mr.Fames - 21.04.2012
Yes what is faster
Re: What is the best way to save playername -
Mr.Fames - 21.04.2012
Thanks alot ******
Re: What is the best way to save playername -
Mr.Fames - 21.04.2012
Quote:
Originally Posted by ******
|
I didn't know that thanks a lot