need some input cus im at the end of my rope and I have no clue why its not working.. what im doing is trying to slim down my old menu from
OLD way...(works)
to this..Code:......one part of the old menu.......... int mod1=0,mod2=0,mod3=0,mod4=0,mod5=0,mod6=0,mod7=0,mod8=0,mod9=0,mod10=0; else if(menuSelectInt==4)//MOD5//CHANGE { // NON ACTIVE if(mod4==1){mod4=0;}// UnHighlights above if(mod6==1){mod6=0;}// UnHighlights Below if(mod5==0){mod5=1;}// Highlights current / // ACTIVE else if(mod4==3){mod4=2;} // UnHighlights above(if Activated) else if(mod6==3){mod6=2;} // UnHighlights Below(if Activated) else if(mod5==2){mod5=3;} // highlights current (if Activated) else if((IS_BUTTON_JUST_PRESSED(0, ACTIVATOR_BUTTON)) && (mod5==1)) //CHANGE// if activator selected & menu int is approprate number then activate mod { mod5=2; // Mod now activated //CHANGE } else if((IS_BUTTON_JUST_PRESSED(0, ACTIVATOR_BUTTON)) && (mod5==3)) // if activator selected mod is on//CHANGE { mod5=1; // Mod now deactivted//CHANGE } }
NEW way..(doesn't work)
Code:int mod1=0,mod2=0,mod3=0,mod4=0,mod5=0,mod6=0,mod7=0,mod8=0,mod9=0,mod10=0; void MenuChoice(int Previous_Mod,int Next_Mod,int Current_Mod) { if(Previous_Mod==1){Previous_Mod=0;}// UnHighlights above else if(Previous_Mod==3){Previous_Mod=2;} // UnHighlights above(if Activated) if(Next_Mod==1){Next_Mod=0;}// UnHighlights Below else if(Next_Mod==3){Next_Mod=2;} // UnHighlights Below(if Activated) if(Current_Mod==0){Current_Mod=1;}// Highlights current else if(Current_Mod==2){Current_Mod=3;} // highlights current (if Activated) if((IS_BUTTON_JUST_PRESSED(0, ACTIVATOR_BUTTON)) && (Current_Mod==1)) {Current_Mod=2;}// Mod now activated else if((IS_BUTTON_JUST_PRESSED(0, ACTIVATOR_BUTTON)) && (Current_Mod==3)){Current_Mod=1;} // Mod now deactivted } void MenuNavActivationAndHighlight() { if(IsMenuOn == 1) { if(menuSelectInt==0){MenuChoice(mod2,mod20,mod1);} // MOD1 //mod20 is last else if(menuSelectInt==1){MenuChoice(mod1,mod3,mod2);} // MOD2 else if(menuSelectInt==2){MenuChoice(mod2,mod4,mod3);} // MOD3 else if(menuSelectInt==3){MenuChoice(mod3,mod5,mod4);} // MOD4 else if(menuSelectInt==4){MenuChoice(mod4,mod6,mod5);} // MOD5 } }
so it is all compiled in loop but when I run it in gta menu shows but it wont switch!!! why!
any insight would be appreciated.


LinkBack URL
About LinkBacks







