What is the best way to save playername
#1

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
Reply
#2

This what you have is a "stock", it doesn't SAVE the playername, it creates a function to receive it's info.
Reply
#3

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.
Reply
#4

I was also wondering what's faster, create a Name variable everytime you use player's name or use a stock returning player name?
Reply
#5

Yes what is faster
Reply
#6

Thanks alot ******
Reply
#7

Quote:
Originally Posted by ******
Посмотреть сообщение
I added to my post - make sure you've seen the second part as it's probably the most important bit!

http://hyperboleandahalf.blogspot.co...verything.html
I didn't know that thanks a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)