18.07.2014, 22:40
You should really look closer at your code optimizations.
This function is the most non-optimized version of a shortened "GetPlayerName" function :
You create a variable each time, but because the function takes a "playerid" parameter, there's absolutely NO NEED to use [MAX_PLAYERS]. You create at least a useless variable.
This function is the most non-optimized version of a shortened "GetPlayerName" function :
pawn Код:
stock GetName(playerid)
{
new pName[MAX_PLAYERS];
GetPlayerName(playerid, pName, sizeof(pName));
return pName;
}