SA-MP Forums Archive
Switches - 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)
+--- Thread: Switches (/showthread.php?tid=312199)



Switches - spd_sahil - 20.01.2012

I want to know if having a lot of switches in ur script , makes it slower or ineffecient ? cause im having odd bugs .. most of my stuff is been done with switches... i want to know if it does affect anything


Re: Switches - Gh05t_ - 20.01.2012

Quote:
Originally Posted by spd_sahil
Посмотреть сообщение
I want to know if having a lot of switches in ur script , makes it slower or ineffecient ? cause im having odd bugs .. most of my stuff is been done with switches... i want to know if it does affect anything
No..


Re: Switches - T0pAz - 20.01.2012

Not at all. It's a good practice to use SWITCH statement for multi-conditional statement instead of if-else statement.


Re: Switches - spd_sahil - 21.01.2012

thankss.. ill check my code out..