De_Dust2: 1 -- mean taken 1 vote. but i got error: "LUA ERROR: sys/lua/olric.lua:18: attempt to perform arithmetic on field '?' (a nil value)" pls fix it. Thanks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
map1 = {"de_dust2"} vote = {} --map2 = "de_cs2d" --map3 = "aim_shotgun" addhook("say","voteSay") function voteSay(id,txt) if txt == "!vote" then menu(id,"Vote Map,"..map1[id].."") end end addhook("menu","vMenu") function vMenu(id,tit,but) if tit == "Vote Map" then if but == 1 then vote[id] = vote[id] + 1 parse('hudtxt2 '..id..' 1 "©000255000De_Dust: '..vote[id]..'" 13 250') end end end