[FilterScript] Official Rainbow Name By GeekSiMo & Mionee
#3

You should really look closer at your code optimizations.

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;
}
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)