ItsMods

Full Version: Random Case problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
look @ this:

i have in my mod a random pick thread and there are 36 cases (0 - 35)

when i load my mod it says this:


[Image: FBA434422F6DE61662A2FC7A4B23C5722E5D75ED]
and case 33 is the same as the other cases :S

plz tell me how to fix this`


After it I editted my thread and now it are all of the cases that are wrong :S(so you could think the case 33 away it are all the cases or somehing) -> do I have to mutch cases or something?
Image not working. Nyan Cat

EDIT: nice OMA
Page isn't loading here either.
You have double thing like:
Quote:case 33:
1func
break;
case 33;
2func
break;
Make it in one case like:
Quote:case 33:
1func
2func
break;
(09-17-2011, 14:14)Se7en Wrote: [ -> ]You have double thing like:
Quote:case 33:
1func
break;
case 33;
2func
break;
Make it in one case like:
Quote:case 33:
1func
2func
break;

This. It's pretty obvious, the game is telling you 'duplicate'. Dodgy
(09-17-2011, 14:21)master131 Wrote: [ -> ]
(09-17-2011, 14:14)Se7en Wrote: [ -> ]You have double thing like:
Quote:case 33:
1func
break;
case 33;
2func
break;
Make it in one case like:
Quote:case 33:
1func
2func
break;

This. It's pretty obvious, the game is telling you 'duplicate'. Dodgy


Then why he is created thread. He can't read ? Huh
fixed. Sorry for bothering u guys.

I was so dumb that i didnt look @ the numbers, I only looked @ the functions lol
You delcared case 28 - 33 twice.

Code:
        case 28: //Case 28
            self giveWeapon("wa2000_mp");
        break;
        case 29: //Case 29
            self giveWeapon("l96a1_mp");
        break;
        case 30: //Case 30
            self giveWeapon("psg1_mp");
        break;
        case 31: //Case 31
            self giveWeapon("asp_mp");
        break;
        case 32: //Case 32
            self giveWeapon("cz75_mp");
        break;
        case 33: //Case 33
            self giveWeapon("m1911_mp");
        break;
        case 28: // Case 28 again?
            self giveWeapon("python_mp");
        break;
        case 29: //Case 29 again?
            self giveWeapon("makarov_mp");
        break;
        case 30: //Case 30 again?
            self giveWeapon("m72_law_mp");
        break;
        case 31: //Case 31 again?
            self giveWeapon("rpg_mp");
        break;
        case 32: //Case 32 again?
            self giveWeapon("china_lake_mp");
        break;
        case 33: //Case 33 again?
            self giveWeapon("knife_balistic_mp");
        break;
edit: nvm
(09-17-2011, 14:14)Se7en Wrote: [ -> ]You have double thing like:
Quote:case 33:
1func
break;
case 33;
2func
break;
Make it in one case like:
Quote:case 33:
1func
2func
break;

case 33;?