2020-12-03, 04:34 AM
(This post was last modified: 2020-12-03, 04:36 AM by AsteriskRin.)
Hello. I am still new at pawno. Could you tell me which one is more efficient from these code? These code has the same purpose.
First Code
Second Code
First Code
Code:
forward test();
public test();
{
new rows;
for(new i = 0; i < rows; i++) {
new string[128];
format(string, sizeof string, "%d is printed.", i);
SendClientMessage(0, 0xFFFFFFFF, string);
}
}
Second Code
Code:
forward test();
public test();
{
new rows;
new string[128];
for(new i = 0; i < rows; i++) {
format(string, sizeof string, "%d is printed.", i);
SendClientMessage(0, 0xFFFFFFFF, string);
}
}