Post: Need help with change map!
07-09-2017, 08:53 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); 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!
07-09-2017, 10:15 AM #2
Adrian
Adrian is back!
Originally posted by SverreMine View Post
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);


Originally posted by EYE
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.
07-09-2017, 11:03 AM #3
It worked ty
07-10-2017, 06:32 AM #4
Adrian
Adrian is back!
Originally posted by SverreMine View Post
It worked ty


Considering I have not coded for about 2 years now I think I did a good job hehe

The following user thanked Adrian for this useful post:

DF_AUS
07-10-2017, 12:20 PM #5
Patrick
League Champion
Originally posted by Adrian View Post
All the stuff you have here is not needed.
You simply need the function which would be.


Then in the sub menu just




How about you actually move the thread to the correct section.


erm why make a function for every map when he had one that passes through a parameter so he only needed to use one, the shit you gave him is trash.

The following user groaned Patrick for this awful post:

DF_AUS
07-10-2017, 12:38 PM #6
Adrian
Adrian is back!
Originally posted by Patrick View Post
erm why make a function for every map when he had one that passes through a parameter so he only needed to use one, the shit you gave him is trash.


You know what,, It worked who gives a shit? I haven't coded in like 2 years lol I have never even made anything for gsc so for me its good.

The following user thanked Adrian for this useful post:

DF_AUS

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo