#1

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?
Reply
#2

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.
Reply
#3

Ok thanks.
Reply
#4

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?
Reply
#5

Quote:
Originally Posted by SymonClash
Посмотреть сообщение
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?
you have to recompile it, come on man it doesnt take a lot of time.
Reply
#6

Quote:
Originally Posted by SymonClash
Посмотреть сообщение
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?
Use sampctl to better manage your projects then.
Reply
#7

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
Reply
#8

Quote:
Originally Posted by SymonClash
Посмотреть сообщение
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
How are you structuring your multi-gamemode system?
Reply
#9

If you're too lazy do not script anything because it is not recommend
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)