03.10.2015, 13:12
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..
sorry for my bad english.,,i.hope u understand
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(file, sizeof(file), "/Maps/%d.ini", mapid);
if(!fexist(file)) return printf("[NOTICE] File Bugged.");
LastMapStarted = mapid;
mapid++;
return mapid-1;
}