sina alex Posted February 18, 2023 Report Posted February 18, 2023 hello i need to know how must a gamemode writhed for best performance what is steps of that also i need to know how i can create includes and do it help to gain better performance? Quote
nobilzeus Posted February 18, 2023 Report Posted February 18, 2023 no, its same thing, when you compile gamemode, its same. Quote
Sancky Posted February 18, 2023 Report Posted February 18, 2023 2 hours ago, sina alex said: hello i need to know how must a gamemode writhed for best performance what is steps of that also i need to know how i can create includes and do it help to gain better performance? Creating your gamemode divided into modules is generally best practice because you will always find what you need and you don't need to search in a 1 bloated big file. Performance overall depends on how much better is your code writed. Always improve what is really important and what really affects your server's performance, you can use https://github.com/Zeex/samp-plugin-profiler to profile your code. 1 Quote
sina alex Posted February 18, 2023 Author Report Posted February 18, 2023 what is best about coding? write all (funactions,cmds,factions and ..) in one file or do it by one by one via FS cmd fs factions fs jobs fs additionals fs ???????? Quote
nobilzeus Posted February 19, 2023 Report Posted February 19, 2023 you can do all in your gamemode.pwn, do not use filescripts for what you say. if you want to create modules, you have to create .inc file and include intro your .pwn file 1 Quote
sina alex Posted February 19, 2023 Author Report Posted February 19, 2023 16 minutes ago, nobilzeus said: you can do all in your gamemode.pwn, do not use filescripts for what you say. if you want to create modules, you have to create .inc file and include intro your .pwn file then what you say is about to do it all in one game mode? what i need for create include? Quote
nobilzeus Posted February 19, 2023 Report Posted February 19, 2023 you can do all in your .pwn you dont need modules, you can use it only if you want to find something faster so if you want to use it, just create a .inc file in your pawno/includes ex: create there vars.inc , cmds.inc , colors.inc what you want after that you go in your gamemode (.pwn) and use #include <vars> #include <colors> thats it 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.