Originally posted by SverreMine
So my problem is: I want in my menu a change map so i typed the code*
level_doMap(mapR)
{
self iPrintlnbold("Map set to: ^1" + mapR + " - ^2Restarting now...");
wait .5;
map(mapR);
}
and the code in my sub menu
self add_option("Change Map", "Nuketown", ::level_doMap, "mp_nuketown_2020");
and it doesnt work it only says Restarting now..!
plz help me
Thank you!
All the stuff you have here is not needed.
You simply need the function which would be.
Originally posted by another user
Nuketown()
{
self iPrintInbold("Map set to: ^1Nuketown - ^2Restarting now...");
map( "mp_nuketown_2020", true );
}
Then in the sub menu just
Originally posted by another user
self add_option("Change Map", "Nuketown", ::Nuketown);
Not sure if your using GSC but try:
You must login or register to view this content.
How about you actually move the thread to the correct section.