Posts: 261
Threads: 32
Joined: Dec 2018
I have this macro:
pawn Код:
#define function%0(%1) forward %0(%1); public %0(%1)
Which allows me to gain some time while scripting (without forwarding everytime a callback)...
I'm using it in a filterscript, but i also wanna use it in a gamemode file, how i can without writing it everytime in every gamemode?
Posts: 80
Threads: 0
Joined: Feb 2019
Reputation:
0
It's just one line..
If you want to be "modular," just put that in a standalone .pwn file and include it into whatever code that needs the specific macro.
Posts: 261
Threads: 32
Joined: Dec 2018
Posts: 261
Threads: 32
Joined: Dec 2018
Update: I just included a .pwn file but everytime i edit this pwn file, to apply changes, i have to re-compile all the scripts that are using this pwn file, how to avoid it?
Posts: 261
Threads: 32
Joined: Dec 2018
Quote:
Originally Posted by Kasichok
you have to recompile it, come on man it doesnt take a lot of time.
|
It doesnt take a lot time if i have only 1 gamemodefile. Since i'm planning to make multi gamemode, you can imagine. lol
ComDuck, i don't like sampctl
Posts: 214
Threads: 31
Joined: Oct 2018
Reputation:
0
If you're too lazy do not script anything because it is not recommend
Posts: 261
Threads: 32
Joined: Dec 2018
I was thinking, what if i include only the .amx file instead of pwn? Do i have to recompile all my scripts in this way too?