[HELP] Optimize Code
#4

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
pawn Код:
for(new i; i != 24; i++) {
        if(DOF2_FileExists(File)) {
            PlayerTextDrawShow(playerid, Text_Login[i]);
        } else {
            PlayerTextDrawShow(playerid, Text_Register[i]);
        }
You could do this too, but it would be more demanding since every loop it would check the if statement again and again.
If you use the code I posted, it will only run the loop inside the if statement.
Reply


Messages In This Thread
[HELP] Optimize Code - by EditPawn - 08.11.2015, 07:04
Re: [HELP] Optimize Code - by Sellize - 08.11.2015, 07:54
Re: [HELP] Optimize Code - by ATGOggy - 08.11.2015, 07:55
Re: [HELP] Optimize Code - by Sellize - 08.11.2015, 07:57
Re: [HELP] Optimize Code - by EditPawn - 08.11.2015, 08:49

Forum Jump:


Users browsing this thread: 1 Guest(s)