English Lua say function reset score

5 replies
Goto Page
To the start Previous 1 Next To the start
13.02.11 10:14:34 pm
Up
_Ultimate_
User
Offline Off
Hey all i truyed to make my first lua today but it does not work please help

Code:
1
2
3
4
5
6
7
8
9
10
addhook("say", "sayfunction")

function sayfunction(id, txt)
if(txt=="!resetscore") then
parse("setscore  "..id.." 0"
parse("setdeaths "..id.." 0"
msg("You have RESETED SCORE"
return 1
end
end


and if some body has time can he explain me where is the error ty
13.02.11 10:55:54 pm
Up
JONY
User
Offline Off
you forgot to close the brackets
addhook("say", "sayfunction")

function sayfunction(id, txt)
if(txt=="!resetscore") then
parse("setscore "..id.." 0")
parse("setdeaths "..id.." 0")
msg("You have RESETED SCORE")
return 1
end
end
14.02.11 01:48:39 am
Up
_Ultimate_
User
Offline Off
omg thanks such a dumn error
16.02.11 10:28:49 am
Up
Bogy3sz
User
Offline Off
how can download fastbuild.lua
16.02.11 10:30:32 am
Up
palomino
User
Offline Off
Always close brackets.
@bodo tomi Your post is spam. No one will answer, make a new topic.
zugcxdxtczgvhioj
16.02.11 12:41:37 pm
Up
DannyDeth
User
Offline Off
@bodo tomi:
Search.
To the start Previous 1 Next To the start