English Vote Map

1 reply
Goto Page
To the start Previous 1 Next To the start
11.02.19 10:50:05 pm
Up
G3tWr3ck3d
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[22:33:56] [ZP] Map change to <zm_greymarsh
> by Admin
[22:33:56] LOAD MAP: 'maps/zm_greymarsh
.map' does not exist
[22:33:56] 16 
[22:33:57] [ZP] Map change to <zm_researchcentermk
> by Admin
[22:33:57] LOAD MAP: 'maps/zm_researchcentermk
.map' does not exist
[22:33:57] 15 
[22:33:58] 14 
[22:33:59] [ZP] Map change to <zm_Assisi_Piazza_v1.1
> by Admin
[22:33:59] LOAD MAP: 'maps/zm_Assisi_Piazza_v1.1
.map' does not exist
[22:33:59] 13 
[22:34:00] [ZP] Map change to <zm_cafecounty
> by Admin
[22:34:00] LOAD MAP: 'maps/zm_cafecounty
.map' does not exist
[22:34:00] 12 
[22:34:01] [ZP] Map change to <zm_de_dust
> by Admin
[22:34:01] LOAD MAP: 'maps/zm_de_dust
.map' does not exist
[22:34:01] 11 
[22:34:02] [ZP] Map change to <zm_de_dust2_xmas
> by Admin
[22:34:02] LOAD MAP: 'maps/zm_de_dust2_xmas
.map' does not exist


Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if title:sub(1, 4) == "Maps" then
          local page = title:match("(%d*)/"..math.ceil(#mp.maps / 6))
          local pages = math.ceil(#mp.maps / 6)
          if button == 8 then mp.mapmenu(id, page + 1) end
          if button == 9 then mp.mapmenu(id, page - 1) end
          if button <= 6 and button > 0 then
               if level[id] < 5 and not mp.pollstarted then
                    local map = ((page - 1) * 6) + button
                    mp.startpoll(id, map)
               elseif level[id] >= 5 then               
                    local e
                    local map = ((page - 1) * 6) + button
                    mp.map = mp.maps[map]
                    for e = 1,p_cnt do 
                         if player(e,'exists')then 
                              zp_player_sv(e)
                         end 
                    end
                    msg(content[1].."Map change to <"..mp.map.."> by Admin@C")
                    timer(5000,"parse","changemap "..mp.map)
               else
                    msg2(id,"\169255000000Error, there's already a map vote pending!") 
               end
          end
     end

It just returns map does not exist. Using http://unrealsoftware.de/files_show.php?file=15921 vote system
Any ideas why it wont change map?

I have noticed that it only occurs on my linux dedicated server. While on my windows dedicated it works changing the map. I feel like is some kind of a cs2d bug
Mess with the best, die like the rest. ༼ つ ◕_◕ ༽つ
13.02.19 04:25:15 am
Up
VADemon
User
Offline Off
It looks like you have a new-line character between <name> and .map

Where and how do you define
mp.maps
?
https://youtu.be/OlX8havmldo | thread cs2d 【東方】Bad Apple!! 【影絵】 in CS2D | Propaganda, Werbung für Waren (Reklame), Lehren und Ideen, besonders auf dem Gebiete der Politik, um Anhänger zu werben; z.B. Wahlpropaganda durch Versammlungen, Rundfunkreden, Plakate und Flugblätter
To the start Previous 1 Next To the start