[Tutorial] Bad scripting habits - What not to do in a script
#8

Quote:

Use sizeof array

sizeof works as a constant and generally only returns constants, PAWN uses a static memory allocation system for variable/string sizes, so there's no way that it'd handle a dynamic response, so it is merely a constant it returns. It's only going to harm your compile time, it's hardly inefficient.

Correct me if I'm wrong, but I'm pretty sure I'm right about ^.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)