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
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