English Need Menu in spawn

2 replies
Goto Page
To the start Previous 1 Next To the start
27.06.11 08:24:45 am
Up
BakTi-
User
Offline Off
hi guys..

i need help
to make menu in the spawn

because every time I make sure lua error
pls help me

i started like this
Code:
1
2
addhook("spawn","csdm_spawnmenu")
function csdm_spawnmenu(id,title,button)


the menu is

Code:
1
menu(id,"CSDM Primary Weapon - Page 1/2,AK,M4A1,AUG,SG552,GALIL,FAMAS,SCOUT")
LOL
27.06.11 08:47:31 am
Up
EngiN33R
Moderator
Offline Off
The spawn hook's only parameter is id.

Code:
1
2
3
4
addhook("spawn","csdm_spawnmenu")
function csdm_spawnmenu(id)
     menu(id,"CSDM Primary Weapon - Page 1/2,AK,M4A1,AUG,SG552,GALIL,FAMAS,SCOUT")
end
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
27.06.11 09:30:25 am
Up
BakTi-
User
Offline Off
No work..
LUE ERROR: attempt to call a nil value
edited 1×, last 27.06.11 06:25:56 pm
LOL
To the start Previous 1 Next To the start