Stock New map
#3

Quote:
Originally Posted by sanamalik400
Посмотреть сообщение
hello samp,,,
anyone can help me for fixing this,,
i have 10 maps for my gm,,when i start my server,,they work.good,,
but after 10 maps when server again load map 1.. and map.1 time complete.,,server not loading other maps,,server loading map 1 again and again,,and my gm crash..
PHP код:
stock LoadNewMap()
{
    new 
file[64];
    
mapid %= MAX_MAP_FILES;
    
format(filesizeof(file), "/Maps/%d.ini"mapid);
    if(!
fexist(file)) return printf("[NOTICE] File Bugged.");
    
LastMapStarted mapid;
    
mapid++;
    return 
mapid-1;

sorry for my bad english.,,i.hope u understand
Код:
stock LoadNewMap()
{
	new file[64];
	LastMapStarted = mapid;
	mapid = mapid==MAX_MAP_FILES?(1):(mapid+1);

	format(file, sizeof(file), "/Maps/%d.ini", mapid);
	if(!fexist(file)) return printf("[NOTICE] File Bugged.");
	return mapid;
}
Reply


Messages In This Thread
Stock New map - by sanamalik400 - 03.10.2015, 13:12
Re: Stock New map - by sanamalik400 - 03.10.2015, 14:58
Re: Stock New map - by [ABK]Antonio - 03.10.2015, 15:10
Re: Stock New map - by sanamalik400 - 03.10.2015, 20:43
Re: Stock New map - by sanamalik400 - 03.10.2015, 20:46
Re: Stock New map - by [ABK]Antonio - 03.10.2015, 22:11
Re: Stock New map - by sanamalik400 - 03.10.2015, 22:40
Re: Stock New map - by sanamalik400 - 03.10.2015, 22:42
Re: Stock New map - by [ABK]Antonio - 03.10.2015, 23:17
Re: Stock New map - by AbyssMorgan - 04.10.2015, 06:50

Forum Jump:


Users browsing this thread: 2 Guest(s)