18.06.2013, 12:37
Hey everyone.
In OnGameModeInit() is use this loop to create diffrent pickups.
My MAX_PICKUPS is 500, MAX_BAUTEIL_PICKUPS is 100, MAX_PANZERUNG_PICKUPS is 20, MAX_REIFEN_PICKUPS is 35.
My problem is, that just the first if is executed. So the "Bauteil-Pickups" are created. But after that nothing happens. Even the code after die loop is not executed.
Don't know how to fix - maybe someone knows
In OnGameModeInit() is use this loop to create diffrent pickups.
Код:
for(new i = 0; i < MAX_PICKUPS; i++) { if(i < MAX_BAUTEIL_PICKUPS) { // 0 - 100 SetBauteilRandomPosInArea(i+1,362.0141, -1891.816, 2826.046, 303.6248); } else if(MAX_BAUTEIL_PICKUPS > i < MAX_BAUTEIL_PICKUPS + MAX_PANZERUNG_PICKUPS) { // 100 - 120 SetPanzerungRandomPosInArea(i+1,362.0141, -1891.816, 2826.046, 303.6248); } else if(MAX_BAUTEIL_PICKUPS + MAX_PANZERUNG_PICKUPS > i < MAX_BAUTEIL_PICKUPS + MAX_PANZERUNG_PICKUPS + MAX_REIFEN_PICKUPS) { // 120 - 155 SetReifenRandomPosInArea(i+1,362.0141, -1891.816, 2826.046, 303.6248); } }
My problem is, that just the first if is executed. So the "Bauteil-Pickups" are created. But after that nothing happens. Even the code after die loop is not executed.
Don't know how to fix - maybe someone knows
