23.10.2010, 08:40
If you create a macro, during complication, the code in the macro (if called) replaces the macro name/title. Basically:
would result in the code in OnGameModeInit becoming:
Seeing as the PAWN speed order is as followed:
stocks (being custom functions) would be slower. Though Macros are intended for use of small snippets of code, not huge functions.
pawn Код:
#define take_control(%0, %1) printf("lol, %s %s", %0, %1) // Probably a bad example
public OnGameModeInit() {
take_control("foo", "bar");
}
pawn Код:
printf("lol, %s %s", "foo", "bar");
Quote:
Originally Posted by ******
Nothing
Constants Variables Arrays Native functions Custom functions Remote functions |