Forum

> > CS2D > Scripts > cs2d menu?
Forums overviewCS2D overview Scripts overviewLog in to reply

English cs2d menu?

3 replies
To the start Previous 1 Next To the start

old cs2d menu?

Fuly
User Off Offline

Quote
help?

LUA ERROR: sys/lua/admin/addons/mod_menu.lua:64: attempt to index field '?' (a nil value)
-> sys/lua/admin/addons/mod_menu.lua:64: in function 'f'
-> sys/lua/admin/addons/mod_menu.lua:141: in function 'click'
-> sys/lua/admin/addons/player_menu.lua:128: in function <sys/lua/admin/addons
player_menu.lua:111>


Spoiler >

old Re: cs2d menu?

Starkkz
Moderator Off Offline

Quote
Line 48:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function HookedFunc(id, b)
     local MenuCount = USERTEMP[id]["navmens"][1][1]
     local MenuID
     for i = 2, #USERTEMP[id]["navmens"] do
          local Cnt = USERTEMP[id]["navmens"][i][1]
          if b >= MenuCount and b <= MenuCount + Cnt then
               MenuID = i
               break
          end
          MenuCount = MenuCount + Cnt

          if i == #USERTEMP[id]["navmens"] then
               return
          end
     end

     if MenuID then
          local title = USERTEMP[id]["navmens"][MenuID][2]
          for _, f in pairs(menu_attachments) do
               f(id, title, b - MenuCount)
          end
     end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview