08.10.2013, 15:16
Hello guys, I'm currently developing a Cops and Robbers server which is located in San Fierro,
I'm currently making a robbery system I'm just going to ask if this method will freeze/lag the server? I know this is the shortest method,
but someone it can cause lag, so that's why I will ask you guys if this method will lag the server if there's about 15-20 players daily.
I'm currently making a robbery system I'm just going to ask if this method will freeze/lag the server? I know this is the shortest method,
but someone it can cause lag, so that's why I will ask you guys if this method will lag the server if there's about 15-20 players daily.
pawn Код:
for(new i = 0; i < sizeof(rCheckpoints); i++)
{
if(checkpointid == rCheckpoints[i])
{
for(new s; robbingshop:s < robbingshop; s++)
{
if(Robbing[playerid][robbingshop:s] >= 1)
{
SendClientMessage(playerid, -1, "Robbery Failed: You left the checkpoint while robbing a shop");
}
}
}
break; //making sure the loop is stopped.
}