SA-MP Forums Archive
Info - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Info (/showthread.php?tid=663713)



Info - SymonClash - 09.02.2019

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?


Re: Info - ComDuck - 09.02.2019

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.


Re: Info - SymonClash - 09.02.2019

Ok thanks.


Re: Info - SymonClash - 09.02.2019

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?


Re: Info - Kasichok - 09.02.2019

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.


Re: Info - ComDuck - 09.02.2019

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.


Re: Info - SymonClash - 09.02.2019

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


Re: Info - ComDuck - 09.02.2019

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?


Re: Info - TokicMajstor - 09.02.2019

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


Re: Info - SymonClash - 10.02.2019

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?