Which one is good?
Code 1:
Code 2:
Code 1:
Code:
forward Function1(a);
public Function1(a) //It is a timer!
{
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(a == 1)
{
if(IsPlayerConnected(i))
{
format(string, sizeof(string), "Test");
SendClientMessage(i, 0xFFFFFFFF, string);
}
}
}
return 1;
}
Code:
forward Function1(a);
public Function1(a) //It is a timer!
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(a == 1)
{
if(IsPlayerConnected(i))
{
new string[128];
format(string, sizeof(string), "Test");
SendClientMessage(i, 0xFFFFFFFF, string);
}
}
}
return 1;
}