Forum

> > CS2D > Scripts > [error] adhook
Forums overviewCS2D overview Scripts overviewLog in to reply

English [error] adhook

2 replies
To the start Previous 1 Next To the start

old [error] adhook

ps2
User Off Offline

Quote
error :
attempt to call a nil value (global 'addhook')


code

Spoiler >


line of error :

1
2
3
4
5
6
addhook("serveraction","public")
function public(id,p)
if p==1 then
menu(id,"L.G Server,Borrar Puntaje,Tiempo Restante,Siguiente mapa,Tiempo,Fecha,Author : DarkFire")
end
end

old Re: [error] adhook

VADemon
User Off Offline

Quote
This code works fine. You must have a script somewhere that deletes the "addhook" variable. Search for "addhook" and see if it's set to
addhook = nil
or similar.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview