[FilterScript] [FS] Faction System (/checkfaction, /joinfaction)
#8

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by MenaceX^
By the way:
pawn Код:
stock PlayerName(playerid) {
 new name[255];
 GetPlayerName(playerid, name, 255);
 return name;
}
Uh?
Why 255? The max string a name can fill is 24 (and even this is only when you set the name in-gamely.)
He probably took this function from some old script/include like dini/dudb/dutils which is using 255 cells for every array.
Yeah, probably. I've seen a lot like this in the "Useful Functions" thread.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)