Forum

> > CS2D > Scripts > can someone fix this?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch can someone fix this?

63 Antworten
Seite
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang

alt can someone fix this?

skillerLTU
User Off Offline

Zitieren
Spoiler >


can someone fix ?
please
2× editiert, zuletzt 09.02.12 22:23:34

alt Re: can someone fix this?

AbAeterno
User Off Offline

Zitieren
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

alt Re: can someone fix this?

sheeL
User Off Offline

Zitieren
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

alt Re: can someone fix this?

skillerLTU
User Off Offline

Zitieren
user sheeL hat geschrieben
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)

alt Re: can someone fix this?

dENd
User Off Offline

Zitieren
user skillerLTU hat geschrieben
user sheeL hat geschrieben
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)

alt Re: can someone fix this?

Big Bang Mafia
User Off Offline

Zitieren
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

alt Re: can someone fix this?

dENd
User Off Offline

Zitieren
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

alt Re: can someone fix this?

skillerLTU
User Off Offline

Zitieren
user dENd hat geschrieben
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 """"

alt Re: can someone fix this?

skillerLTU
User Off Offline

Zitieren
user dENd hat geschrieben
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

alt Re: can someone fix this?

dENd
User Off Offline

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

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

alt Re: can someone fix this?

skillerLTU
User Off Offline

Zitieren
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

alt Re: can someone fix this?

Yates
Reviewer Off Offline

Zitieren
1
parse("setpos "..id.." 7696 12496")
If you use " then the numbers won't be recognized as numbers any more.
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht