22.01.2011, 13:15
I already asked this in "general minor question's", but didn't get well questions, so I'll ask it here again.
Quote:
Message originally posted by TehEbil on 04/01/2011 at 03:54 PM: Hey, atm I'm optimizing my script, so I've got some questions: 1) Since I know that using of functions make the script slower, I write the part of the function into the command itself, but when functions are useful? If the functions should be repeated more times? And then, it is rly better or just cleaner ? 2) What is better and what is faster? Or What you would prefer using? pawn Код:
pawn Код:
3) solved 4) Since functions are slower than defines, I try to convert my functions into defines, but there's my first error: pawn Код:
warning 236: unknown parameter in substitution (incorrect #define pattern) Line: AdminLog(playerid, ID, "Kick", string); 5) Last question: Is it a different between using new string[120] and string[127]? I think so, but I read somewhere that you should take the 2І, 2і, ... (-1, cause of \0) parts, is that true? - TehEbil edit: 6) What is 'better'? pawn Код:
- TehEbil |