27.06.2012, 12:42
Quote:
Quick n00b question.
I see that a lot of people use: Код:
if(IsPlayerConnected(targetid)){ //do something }else{ SendClientMessage(playerid, COLOR_WHITE, "Player not connected!"); } return 1; Код:
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "Player not connected!"); // do something here.. return 1; Is anything wrong with the second example? Does it affect teh performance in any way? I know is a noob question.. Just asking because I don't really know much stuff about how samp and NOT works in SAMP. |