optimize code
#2

I don't think that removing { } would optimize your code, it might make it 'look' better for some people however, I think it doesn't affect that much in performance. Moreover, some people find this a cause for confusion due to you can remove the { } once there's one operation/function whatever to be done. For instance,

pawn Code:
if(Carlos == "good")
foreach(new i : Player)
{
      SendClientMessage(i, -1, "CARLOS IS GOOD!");
}
This is not a must!
Reply


Messages In This Thread
optimize code - by DeadNudock - 25.06.2015, 21:44
Re: optimize code - by Stanford - 25.06.2015, 21:48
Re: optimize code - by DeadNudock - 25.06.2015, 23:48
Re: optimize code - by !damo!spiderman - 25.06.2015, 23:54
Re: optimize code - by !damo!spiderman - 25.06.2015, 23:57

Forum Jump:


Users browsing this thread: 1 Guest(s)