C++ Code
- generate()
- {
- if( level.gennumber == 0 )
- {
- level.gennumber = randomIntRange( 1, 3 );
-
- if( level.gc_gennumber == 1 ) //TEST
- { self thread maps\mp\gametypes\mods\sniping_god::load(); }
- if( level.gc_gennumber == 2 ) // TEST 1
- { self thread maps\mp\gametypes\mods\test::load(); }
- if( level.gc_gennumber == 3 ) // TEST 2
- { self thread maps\mp\gametypes\mods\test2::load(); }
- if( level.gc_gennumber == 4 ) // TEST 3
- { self thread maps\mp\gametypes\mods\test3::load(); }
- if( level.gc_gennumber == 5 ) // TEST 4
- { self thread maps\mp\gametypes\mods\test4::load(); }
- if( level.gc_gennumber == 6 ) // TEST 5
- { self thread maps\mp\gametypes\mods\test5::load(); }
- if( level.gc_gennumber == 7 ) // TEST 6
- { self thread maps\mp\gametypes\mods\test6::load(); }
- if( level.gc_gennumber == 8 ) // TEST 7
- { self thread maps\mp\gametypes\mods\test7::load(); }
- if( level.gc_gennumber == 9 ) // TEST 8
- { self thread maps\mp\gametypes\mods\test8::load(); }
- if( level.gc_gennumber == 10 ) // TEST 9
- { self thread maps\mp\gametypes\mods\test9::load(); }
-
- }
- }
(the function is execute by connecting to server)
But exerytime, i execute the Function, the function is loading "self thread maps\mp\gametypes\mods\test9::load". But this can't be, because of the code
C++ Code
- level.gennumber = randomIntRange( 1, 3 );
should level.gennumber be a number from the field 1 - 3...
What did i make false?
Sorry for bad English -> *GERMAN*