04.08.2013, 19:08
I think it must be this coding as it crashes when reciving the paycheck...
Код:
if(playerTabbed[i] == 0) { switch(PlayerInfo[i][pLevel]) { case 0 .. 2: PlayerInfo[i][pPayCheck] += 1; case 3 .. 4: PlayerInfo[i][pPayCheck] += 2; case 5 .. 6: PlayerInfo[i][pPayCheck] += 3; case 7 .. 8: PlayerInfo[i][pPayCheck] += 4; case 9 .. 10: PlayerInfo[i][pPayCheck] += 5; case 11 .. 12: PlayerInfo[i][pPayCheck] += 6; case 13 .. 14: PlayerInfo[i][pPayCheck] += 7; case 15 .. 16: PlayerInfo[i][pPayCheck] += 8; case 17 .. 18: PlayerInfo[i][pPayCheck] += 9; case 19 .. 20: PlayerInfo[i][pPayCheck] += 10; default: PlayerInfo[i][pPayCheck] += 11; } if(++PlayerInfo[i][pConnectSeconds] >= 3600) { PayDay(i); } }