No this wouldn't change compiling speeds as it reads threw the entire code no matter what at the same speed if it's all in one line or not. I recommend to you, you keep it the same. The only way to optimize something is if you're making it more optimal of use by doing this you're not directly effecting anything. My suggestion is you take a look in your script where you use useless amounts of cells, and you look threw the script to make sure that it's storing data the quickest, and most efficient way, you can also start by looking through your gamemode and see if you have any spots where you randomly get the cells when you don't need to as it can effect the performance of your host.
Example of what I mean with the uselessly getting cells
Inefficient way;
pawn Код:
CMD:pm(playerid, params[])
{
new targetid, text[128], string[164];;
if(sscanf(params, "us[128]", targetid, text)) { SendClientMessage(playerid, COLOR_DRED, "USAGE: /pm <Player ID> <Text>"); }
else {
format(string, sizeof(string), "(( PM to %s{F0F000}: %s ))", PlayerNameEx(targetid), text);
SendClientMessage(playerid, COLOR_DARKYELLOW, string);
format(string, sizeof(string), "(( PM from %s{F0F000}: %s ))", PlayerNameEx(playerid), text);
SendClientMessage(targetid, COLOR_DARKYELLOW, string);
}
return 1;
}
Efficient way;
pawn Код:
CMD:pm(playerid, params[])
{
new targetid, text[128];
if(sscanf(params, "us[128]", targetid, text)) { SendClientMessage(playerid, COLOR_DRED, "USAGE: /pm <Player ID> <Text>"); }
else {
new string[164];
format(string, sizeof(string), "(( PM to %s{F0F000}: %s ))", PlayerNameEx(targetid), text);
SendClientMessage(playerid, COLOR_DARKYELLOW, string);
format(string, sizeof(string), "(( PM from %s{F0F000}: %s ))", PlayerNameEx(playerid), text);
SendClientMessage(targetid, COLOR_DARKYELLOW, string);
}
return 1;
}
This may seem like a very little change, but it has a noticable impact throughout the gamemode if you do this often for every command. If you're only looking for quicker compilation I'd take out un-used/needed code, or systems that are obsolete or not needed. Other then that you're not really going to get a difference.
The way you're thinking is that just because you shorten the lines of code you use you're going to get faster compilation times but that's incorrect. Let me give you an example in another language (c#)
You expect this;
Код:
using System;
namespace CSharp {
class CSharp {
static void Main(string[] args) {
Console.WriteLine("C Sharp woooo!"); }
}
}
To be quicker then this;
Код:
using System;
namespace CSharp
{
class CSharp
{
static void Main(string[] args)
{
Console.WriteLine(""C Sharp woooo!") }
}
}
But in reality it isnt, it just looks a lot cleaner the first. (Imo) so don't expect quicker compilation times unless you remove code.