SA-MP Forums Archive
Would would be faster/more effective? Does it matter? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Would would be faster/more effective? Does it matter? (/showthread.php?tid=121451)



Would would be faster/more effective? Does it matter? - Devine - 17.01.2010

Would it be faster to do:
Код:
if(giveplayerid != INVALID_PLAYER_ID)
{
   Kick(giveplayerid);
}
or
Код:
if(giveplayerid != INVALID_PLAYER_ID){
Kick(giveplayerid); }
Or does it matter? Just curious.


Re: Would would be faster/more effective? Does it matter? - Miguel - 17.01.2010

pawn Код:
if(giveplayerid != INVALID_PLAYER_ID) return Kick(giveplayerid);
It really doesn't matter...


Re: Would would be faster/more effective? Does it matter? - Devine - 17.01.2010

Ah, okay. I'm looking for every single way to make this script work the best way, the fastest and most effective.


Re: Would would be faster/more effective? Does it matter? - Miguel - 17.01.2010

This one will help you a lot:

http://forum.sa-mp.com/index.php?topic=79810.0