Differences
#2

Quote:
Originally Posted by zack3021
Посмотреть сообщение
I have been using,
pawn Код:
GetPlayerName(playerid,name,sizeof(name)); and
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
But what is the differences between them?
Try printing them.

pawn Код:
printf("%d",MAX_PLAYER_NAME);
printf("%d",sizeof(name));
Though i would recommend using an stock that returns the player name.. like this:

pawn Код:
stock GetPlayerNameEx(playerid)
{
     new pName[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pName, sizeof(pName));
     return pName;
}
Reply


Messages In This Thread
Differences - by zack3021 - 18.11.2010, 00:41
Re: Differences - by Cameltoe - 18.11.2010, 00:43
Re: Differences - by zack3021 - 18.11.2010, 00:46
Re: Differences - by Grim_ - 18.11.2010, 00:52

Forum Jump:


Users browsing this thread: 1 Guest(s)