what the best form of load external functions?
#1

Well, I've been questioned several times about this and today I decided to ask. What better way for a code to work better or faster? For example, I have a barrier system, missile launchers, and other stripe, but each carries a gamemode and include them all. my doubt is the best way for the code to make it better or faster? As is or place all just a load and include everything?
Reply
#2

As ****** said, (though perhaps not clear enough), includes are 'imported' to your mode at compile time, and are compiled as one .amx file. The .inc files are never used at runtime.
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
What? Includes are imported in to your mode so are just as fast as them being there? Are any of these systems slow?
No.
Quote:
Originally Posted by MP2
Посмотреть сообщение
As ****** said, (though perhaps not clear enough), includes are 'imported' to your mode at compile time, and are compiled as one .amx file. The .inc files are never used at runtime.
okk! then why is the file size .amx is different .pwn
now I understand, and understand other things. thank you ******, thank you MP2
Reply
#4

Quote:
Originally Posted by MP2
Посмотреть сообщение
As ****** said, (though perhaps not clear enough), includes are 'imported' to your mode at compile time, and are compiled as one .amx file. The .inc files are never used at runtime.
Don't forget about natives. If the .amx file is compiled with any native function, you need the respective plugin until you modify it in .pwn file.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)