Forum

> > CS2D > Scripts > can someone fix this?
Forums overviewCS2D overview Scripts overviewLog in to reply

English can someone fix this?

63 replies
Page
To the start Previous 1 2 3 4 Next To the start

old can someone fix this?

skillerLTU
User Off Offline

Quote
Spoiler >


can someone fix ?
please
edited 2×, last 09.02.12 10:23:34 pm

old Re: can someone fix this?

AbAeterno
User Off Offline

Quote
Try:
1
2
3
4
5
6
elseif command =='j' then
parse("setpos "..player.." "..7696.." "..12496)
end
msg2(id,'send player to jail: "!j <targetid>"')
return 1          
end

Not very good at tibia

old Re: can someone fix this?

sheeL
User Off Offline

Quote
1
2
3
4
5
6
7
8
elseif command =="j" then
parse("setpos "..pl..""..7696..""..12496)
end
msg2(id,"©000255000Send Player To Jail: "!j <targetid>")
else
msg2(id,"©255000000 ERROR ")
end
return 1

old Re: can someone fix this?

skillerLTU
User Off Offline

Quote
user sheeL has written
1
2
3
4
5
6
7
8
elseif command =="j" then
parse("setpos "..pl..""..7696..""..12496)
end
msg2(id,"©000255000Send Player To Jail: "!j <targetid>")
else
msg2(id,"©255000000 ERROR ")
end
return 1



not work.

lua error: admin.lua:50: malformed number near '7696..'


line 50 is:
parse("setpos "..pl..""..7696..""..12496)

old Re: can someone fix this?

dENd
User Off Offline

Quote
user skillerLTU has written
user sheeL has written
1
2
3
4
5
6
7
8
elseif command =="j" then
parse("setpos "..pl..""..7696..""..12496)
end
msg2(id,"©000255000Send Player To Jail: "!j <targetid>")
else
msg2(id,"©255000000 ERROR ")
end
return 1



not work.

lua error: admin.lua:50: malformed number near '7696..'


line 50 is:
parse("setpos "..pl..""..7696..""..12496)



maybe ..pl.. to ..id.. (im not familirar with tibia)

old Re: can someone fix this?

Big Bang Mafia
User Off Offline

Quote
I don't know much about tibia, but try this:

1
2
3
4
5
6
elseif command =="j" then
parse("setpos "..id..""..7696..""..12496")
else
msg2(id,"Send a player to jail: "!j <id>")
end
return 1

old Re: can someone fix this?

dENd
User Off Offline

Quote
try this

elseif command =="j" then
parse("setpos "..pl..""..7696..""..12496..")
end
msg2(id,"©000255000Send Player To Jail: "!j <targetid>")
else
msg2(id,"©255000000 ERROR ")
end
return 1

old Re: can someone fix this?

skillerLTU
User Off Offline

Quote
user dENd has written
did you try my part?

i think the problem was the ...")


not working. just tried


EDIT:
parse("setpos "..pl..""..7696..""..12496..")

error is near 7696..


made that line like this
parse("setpos "..pl..""..7696""..12496")
error was with something like """"

old Re: can someone fix this?

skillerLTU
User Off Offline

Quote
user dENd has written
parse("setpos "..id..""..7696..""..12496..") now?



not work...


EDIT:

line:
               parse("setpos "..id.." "..7696" "..12496"")

error: '" "'
'-"_"-' if you cant see


EDIT2: i think i will remove that command at all

old Re: can someone fix this?

dENd
User Off Offline

Quote
Yours:
parse("setpos "..id.." "..7696" "..12496"")

Mine:
parse("setpos "..id..""..7696..""..12496..")

old Re: can someone fix this?

skillerLTU
User Off Offline

Quote
now it looks like:


elseif command =="j" then
parse("setpos "..id.." '7696' '12496'")
end
msg2(id,"©000255000Send Player To Jail: !j <id>")
else
msg2(id,"©255000000 ERROR ")
end
return 1

old Re: can someone fix this?

Yates
Reviewer Off Offline

Quote
1
parse("setpos "..id.." 7696 12496")
If you use " then the numbers won't be recognized as numbers any more.
To the start Previous 1 2 3 4 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview