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.