Raised This Month: $ Target: $400
 0% 

Help with auto map changing...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lord_inuyasha88
Junior Member
Join Date: Dec 2004
Old 12-26-2004 , 18:52  
Reply With Quote #1

I dindt mean the last option, I meant when the choosing starts there are like 4 random options then number 7 or 8 is none its always there...
lord_inuyasha88 is offline
bo0m
Senior Member
Join Date: Oct 2004
Location: staten islan, ny, us
Old 12-26-2004 , 18:54  
Reply With Quote #2

..........
bo0m is offline
Send a message via AIM to bo0m
lord_inuyasha88
Junior Member
Join Date: Dec 2004
Old 12-26-2004 , 19:23  
Reply With Quote #3

Can you rename that?...?
lord_inuyasha88 is offline
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 12-26-2004 , 20:26  
Reply With Quote #4

This is one of my wildest guesses ever, as I'm not coder..period.

loadSettings(filename[]) {
if (!file_exists(filename)) return 0

new szText[32]
new a, pos = 0
new currentMap[32]
get_mapname(currentMap,31)

while ( (g_mapNums < MAX_MAPS) && read_file(filename,pos++,szText,31,a) ) {
if ( szText[0] != ';'
&& parse(szText, g_mapName[g_mapNums] ,31 )
&& is_map_valid( g_mapName[g_mapNums] )
&& !equali( g_mapName[g_mapNums] ,g_lastMap)
&& !equali( g_mapName[g_mapNums] ,currentMap) )
++g_mapNums
}

return g_mapNums
}

That came from mapchooser.sma. Now, from what it looks like, The bottom two options, lastmap and currentmap, are what your looking for. Usually in coding, a ! before something, means it's false or whatnot. Now I'm not even goig to try this, but maybe removing the ! would work.

Like I said, it'd be better for you to ask someone who codes in the Scripting Help forum for more information, because more than anything that is wrong. =\
f1del1ty.oXi is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 12-26-2004 , 20:39  
Reply With Quote #5

Yea, it's not as easy as that.
__________________
twistedeuphoria is offline
lord_inuyasha88
Junior Member
Join Date: Dec 2004
Old 12-26-2004 , 21:04  
Reply With Quote #6

Is there any way to move this to the scripting forum?
lord_inuyasha88 is offline
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 12-27-2004 , 00:22  
Reply With Quote #7

Just make a new topic. =\
f1del1ty.oXi is offline
mader
Member
Join Date: Dec 2004
Old 01-06-2005 , 07:20   hhm
Reply With Quote #8

put them in map.ini
__________________
leader of funniestclan ip 81.227.80.160
game cs
site www.funniest-clan.tk
have fun
mader is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode