1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("minute","Test") function test() for(i=1,32,2)do if (player(i,"exists"))then msg2(i,"This is advertising") end end end end
But strangeley enough it gives me this error:
LUA ERROR: sys/lua/test.lua:3: '<name>' expected near '('
what is wrong?