21.12.2015, 10:03
I have one public for payday, and which option is better, and why?:
1. option
2. option
1. option
Код:
public PayDay() { foreach(Player, i) { if(IsPlayerConnected(i) && gPlayerLogged[i] == 1) { if(PlayerInfo[i][pPayDay] < 5) return 1; new coordstring[64], coordstring1[32], coordstring2[50], coordstring3[45], coordstring4[80], coordstring5[45], coordstring6[50], coordstring7[48]; new coordstring8[80], coordstring9[35], coordstring10[50], coordstring11[72], coordstring12[50], coordstring13[45], coordstring15[75], payday[830]; ...
Код:
public PayDay() { new coordstring[64], coordstring1[32], coordstring2[50], coordstring3[45], coordstring4[80], coordstring5[45], coordstring6[50], coordstring7[48]; new coordstring8[80], coordstring9[35], coordstring10[50], coordstring11[72], coordstring12[50], coordstring13[45], coordstring15[75], payday[830]; foreach(Player, i) { if(IsPlayerConnected(i) && gPlayerLogged[i] == 1) { if(PlayerInfo[i][pPayDay] < 5) return 1; ...