Forum

> > CS2D > General > Stupid Lua/Dedicated-Server Problem
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Stupid Lua/Dedicated-Server Problem

3 replies
To the start Previous 1 Next To the start

old Stupid Lua/Dedicated-Server Problem

Jermuk
User Off Offline

Quote
Hello all,

I posted this already in Lua Scriopt Thread, but then I realized, that this is a server, not lua, problem.
I have a supid problem. My script works with "New game" fine, but when I try it on a dedicated server it fails. First I thought that it is a script problem but then i tried this:
1
2
3
4
5
6
7
addhook ("usebutton", "onusebutton")
function onusebutton(id,x,y)
	msg("ICH MAG DONER");
	.
	.
	.
end

With dedicated it don't display "Ich mag Doner", wich means, that the server don't call the "usebutton" hook. When I start a game with 'New game' it works fine, but just when I press a button. When other press a button, it don't work. Anyone else with the same problem and know the solution?

Thank you!

Jermuk aka Dönarmaster
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview